:root{
  --red:#d5001c;--red-dark:#a90016;--ink:#111111;--ink-2:#242424;--muted:#68707d;
  --line:#e3e5e8;--surface:#ffffff;--canvas:#f3f4f6;--soft:#f8f8f9;--green:#16834a;
  --amber:#c26a05;--yellow:#d8a400;--blue:#2463a9;--danger:#b90018;
  --shadow:0 12px 34px rgba(17,17,17,.09);--shadow-sm:0 4px 16px rgba(17,17,17,.06);
  --radius:18px;--sidebar:246px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.muted{color:var(--muted)}
.full{width:100%}
.eyebrow{margin:0 0 7px;color:var(--red);font-size:11px;font-weight:900;letter-spacing:.15em}
.subtle{font-size:12px;color:var(--muted)}
.money{font-variant-numeric:tabular-nums}

.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 88% 4%,#5c000d 0,transparent 32%),linear-gradient(145deg,#080808,#222 70%,#151515)}
.login-card{width:min(520px,100%);background:var(--surface);border-radius:28px;padding:34px 38px;box-shadow:0 24px 70px rgba(0,0,0,.34)}
.login-card h1{margin:16px 0 8px;line-height:1.02;letter-spacing:-.035em}
.login-card h1 span{display:block;font-size:clamp(31px,6vw,46px)}
.login-card h1 small{display:block;margin-top:7px;font-size:clamp(20px,4vw,28px);font-weight:650;color:#444;letter-spacing:-.02em}
.login-note{margin:14px 0 0;color:var(--muted);font-size:12px;line-height:1.55}
label{display:grid;gap:7px;margin:16px 0;font-size:13px;font-weight:800;color:#202020}
input,select,textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:12px 13px;outline:none;transition:border-color .18s,box-shadow .18s}
textarea{resize:vertical;min-height:86px}
input:focus,select:focus,textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(213,0,28,.10)}
input[type="checkbox"]{width:18px;height:18px;accent-color:var(--red)}
.notice{display:flex;gap:10px;align-items:flex-start;border-radius:13px;padding:12px 13px;font-size:12px;line-height:1.4}
.notice strong{white-space:nowrap}.notice.warning{background:#fff6de;border:1px solid #f0d998;color:#6d4a00}.notice.info{background:#eef5ff;border:1px solid #ccddf4;color:#234c78}.notice.success{background:#ecf8f0;border:1px solid #c5e6d1;color:#155b33}

.btn{border:0;border-radius:12px;padding:11px 16px;font-weight:850;display:inline-flex;gap:8px;align-items:center;justify-content:center;transition:transform .15s,filter .15s,box-shadow .15s}
.btn:hover{filter:brightness(.97);transform:translateY(-1px)}
.btn:active{transform:none}
.btn.primary{background:var(--red);color:#fff;box-shadow:0 8px 18px rgba(213,0,28,.18)}
.btn.dark{background:var(--ink);color:#fff}.btn.secondary{background:#eceef0;color:var(--ink)}.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}.btn.success,.btn.excel,.btn.whatsapp{background:var(--green);color:#fff}.btn.pdf{background:#34383d;color:#fff}.btn.info{background:var(--blue);color:#fff}.btn.danger{background:#feecef;color:var(--danger)}.btn.small{padding:8px 11px;font-size:12px;border-radius:10px}.btn.full{margin-top:12px}.btn-icon{font-size:1.08em;line-height:1}
.icon-btn{border:0;background:transparent;color:inherit;padding:8px;border-radius:10px;font-size:18px}
.icon-btn:hover{background:#0000000a}

.app-shell{min-height:100vh;min-width:0}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#111;color:#fff;display:flex;flex-direction:column;z-index:40}.workspace{min-height:100vh;min-width:0;margin-left:var(--sidebar)}
.sidebar-brand{min-height:84px;padding:15px 14px;border-bottom:1px solid #ffffff17;display:flex;align-items:center;gap:8px}.sidebar-brand>div{margin-left:1px;min-width:0}.sidebar-brand strong,.sidebar-brand small{display:block}.sidebar-brand strong{font-size:15px}.sidebar-brand small{font-size:10px;color:#aeb0b4;margin-top:2px}
.side-nav{flex:1;min-height:0;padding:14px 11px;overflow-y:auto;overflow-x:hidden;display:grid;gap:3px;scrollbar-width:thin;scrollbar-color:#66747d transparent}.nav-section{padding:14px 11px 6px;color:#777;font-size:9px;font-weight:900;letter-spacing:.14em}.nav-link{width:100%;border:0;background:transparent;color:#bbb;border-radius:11px;padding:10px 12px;display:flex;align-items:center;gap:11px;text-align:left;font-size:13px}.nav-link span{width:20px;text-align:center;font-size:16px}.nav-link b{font-weight:750}.nav-link:hover{background:#ffffff0e;color:#fff}.nav-link.active{background:var(--red);color:#fff}.side-nav-more{flex:0 0 auto;margin:-2px 12px 8px;border:1px solid #ffffff19;border-radius:10px;background:linear-gradient(180deg,#12242d,#091820);color:#fff;min-height:39px;display:flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 -9px 22px rgba(2,13,20,.52);cursor:pointer}.side-nav-more span{color:#ff3145;font-size:22px;line-height:1;animation:navMoreBounce 1.5s ease-in-out infinite}.side-nav-more small{font-size:9px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.side-nav-more:hover{border-color:#ffffff32;background:#142b35}@keyframes navMoreBounce{50%{transform:translateY(3px)}}.sidebar-footer{margin-top:auto;padding:14px 11px 16px;border-top:1px solid #ffffff17}.sidebar-footer>div{padding:0 11px 11px}.sidebar-footer strong,.sidebar-footer small{display:block}.sidebar-footer small{color:#888;margin-top:3px}.logout-link{color:#aaa}
.topbar{height:72px;position:sticky;top:0;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 24px;z-index:25}.menu-btn{display:none}.top-title{display:grid}.top-title>strong{font-size:18px}.top-title>small{font-size:11px;color:var(--muted);margin-top:3px}.sync-box{margin-left:auto;display:flex;align-items:center;gap:9px;color:var(--muted)}.sync-box small,.sync-box strong{display:block}.sync-box small{font-size:9px;text-transform:uppercase;letter-spacing:.08em}.sync-box strong{font-size:11px;color:#3b3b3b;margin-top:2px}.sync-dot{width:9px;height:9px;border-radius:50%;background:#9da3ac;box-shadow:0 0 0 4px #9da3ac22}.sync-dot.online{background:var(--green);box-shadow:0 0 0 4px #16834a22}.sync-dot.syncing{background:var(--amber);animation:pulse 1s infinite}.sync-dot.offline{background:var(--danger)}
@keyframes pulse{50%{opacity:.35}}

main{max-width:1500px;min-width:0;margin:0 auto;padding:24px 26px 92px;outline:none}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;min-width:0}.page-head h1{margin:0;font-size:clamp(24px,3vw,34px);letter-spacing:-.035em}.page-head p{margin:6px 0 0;color:var(--muted);max-width:720px}.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.hero{border-radius:24px;padding:26px 28px;background:linear-gradient(135deg,#b80018,#e11831);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 18px 44px rgba(176,0,23,.20);overflow:hidden;position:relative}.hero:after{content:"";position:absolute;width:250px;height:250px;border:52px solid #ffffff14;border-radius:50%;right:-90px;top:-110px}.hero>*{position:relative;z-index:1}.hero .eyebrow{color:#ffffffa8}.hero h2{margin:0;font-size:clamp(25px,4vw,39px);letter-spacing:-.035em}.hero p{margin:8px 0 0;color:#ffe3e7}.hero-actions{display:flex;gap:9px;flex-wrap:wrap}.hero .btn.ghost{border-color:#ffffff55;background:#ffffff16;color:#fff}
.test-strip{margin:0 0 16px;background:#fff3c9;border:1px solid #edda93;border-radius:13px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#614800;font-size:12px;min-width:0}.test-strip span{min-width:0;overflow-wrap:anywhere}
.test-strip button{border:0;background:transparent;text-decoration:underline;color:inherit;font-weight:800}

.kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:16px 0}.kpi-card{border:1px solid transparent;background:#fff;border-radius:17px;padding:15px 17px 17px;text-align:left;box-shadow:var(--shadow-sm);min-width:0;transition:transform .16s,border-color .16s,box-shadow .16s}.kpi-card.clickable:hover{border-color:#e8aab2;transform:translateY(-2px);box-shadow:var(--shadow)}.kpi-top{display:flex!important;align-items:center;gap:8px}.kpi-icon{width:30px;height:30px;border-radius:9px;display:grid!important;place-items:center;color:#fff!important;background:#555;font-size:16px!important}.kpi-label{font-size:12px!important;font-weight:850;color:var(--muted)!important}.kpi-card small{display:block;color:var(--muted)}.kpi-card strong{display:block;margin:9px 0 5px;font-size:clamp(22px,2vw,30px);letter-spacing:-.04em;white-space:normal;overflow-wrap:anywhere}.kpi-card small{font-size:10px}.kpi-card.danger{border-top:4px solid var(--danger)}.kpi-card.danger strong{color:var(--danger)}.kpi-card.danger .kpi-icon{background:var(--danger)}.kpi-card.warning{border-top:4px solid var(--amber)}.kpi-card.warning strong{color:var(--amber)}.kpi-card.warning .kpi-icon{background:var(--amber)}.kpi-card.success{border-top:4px solid var(--green)}.kpi-card.success strong{color:var(--green)}.kpi-card.success .kpi-icon{background:var(--green)}.kpi-card.info{border-top:4px solid var(--blue)}.kpi-card.info strong{color:var(--blue)}.kpi-card.info .kpi-icon{background:var(--blue)}
.grid-2{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:16px;min-width:0}.grid-2>*{min-width:0}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0}.grid-3>*{min-width:0}.panel{min-width:0;background:#fff;border:1px solid #e9eaec;border-radius:var(--radius);padding:19px;box-shadow:var(--shadow-sm)}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px;min-width:0}.section-head>*{min-width:0}.section-head h2,.section-head h3{margin:0;letter-spacing:-.02em}.section-head h2{font-size:20px}.section-head h3{font-size:17px}.section-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.text-btn{border:0;background:transparent;color:var(--red);font-weight:850;padding:6px 2px}

.store-list,.activity-list,.alert-list,.summary-list{display:grid;gap:9px;min-width:0}.store-row,.activity-row,.alert-row{width:100%;min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;padding:13px;display:flex;align-items:center;gap:12px}.store-row:hover,.activity-row:hover{border-color:#cfd2d6}.store-status{width:10px;height:10px;border-radius:50%;background:var(--green);flex:0 0 auto}.store-status.risk{background:var(--danger)}.store-row>div,.activity-row>div{min-width:0;flex:1}.store-row strong,.activity-row strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.store-row small,.activity-row small{display:block;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis}.row-value{min-width:0;text-align:right;white-space:nowrap}.row-value strong{font-size:16px}.row-value small{font-size:10px}.empty{padding:28px;text-align:center;color:var(--muted);border:1px dashed #d8dadd;border-radius:14px;background:#fafafa}

.filters{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;align-items:end;margin-bottom:16px}.filters label{margin:0}.filters .filter-actions{display:flex;gap:7px}.filter-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 12px}.filter-summary strong{font-size:20px}.filter-chip{background:#f0f1f3;border-radius:999px;padding:6px 10px;font-size:11px;color:#4b5058}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;scrollbar-color:var(--red) #dfe1e4;scrollbar-width:auto}.table-wrap::-webkit-scrollbar,.search-results::-webkit-scrollbar,.dialog-body::-webkit-scrollbar{width:14px;height:14px}.table-wrap::-webkit-scrollbar-track,.search-results::-webkit-scrollbar-track,.dialog-body::-webkit-scrollbar-track{background:#dfe1e4;border-radius:999px}.table-wrap::-webkit-scrollbar-thumb,.search-results::-webkit-scrollbar-thumb,.dialog-body::-webkit-scrollbar-thumb{background:var(--red);border:3px solid #dfe1e4;border-radius:999px}.side-nav::-webkit-scrollbar{width:5px;height:5px}.side-nav::-webkit-scrollbar-track{background:transparent}.side-nav::-webkit-scrollbar-thumb{background:#66747d;border:0;border-radius:999px}.side-nav::-webkit-scrollbar-thumb:hover{background:#8e9aa1}.data-table{width:100%;border-collapse:collapse;min-width:900px;font-size:12px}.data-table th{position:sticky;top:0;background:#171717;color:#fff;text-align:left;padding:11px 12px;font-size:10px;letter-spacing:.05em;text-transform:uppercase}.data-table td{padding:11px 12px;border-bottom:1px solid #ededee;vertical-align:top}.data-table tbody tr:hover{background:#fff8f9}.data-table tbody tr.detail-row{cursor:pointer}.data-table tbody tr.detail-row:focus{outline:3px solid rgba(213,0,28,.22);outline-offset:-3px}.data-table td strong{display:block}.data-table td small{display:block;color:var(--muted);margin-top:3px}.data-table .num{text-align:right;font-variant-numeric:tabular-nums}.table-actions{display:flex;gap:5px;white-space:nowrap}
.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#eceef0;color:#454a50;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.badge.red{background:#fde9ec;color:#a90016}.badge.amber{background:#fff0d7;color:#8b4a00}.badge.yellow{background:#fff8cc;color:#745b00}.badge.green{background:#e8f6ed;color:#126038}.badge.blue{background:#e8f1fb;color:#174f89}.badge.dark{background:#222;color:#fff}

.store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.store-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px;box-shadow:var(--shadow-sm);display:grid;gap:12px}.store-card-head{display:flex;justify-content:space-between;gap:10px}.store-card h3{margin:0}.store-card p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.4}.store-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.store-metrics button{border:0;background:#f5f5f6;border-radius:10px;padding:9px;text-align:left}.store-metrics button:hover{background:#fff0f2}.store-metrics strong,.store-metrics small{display:block}.store-metrics small{font-size:9px;color:var(--muted);margin-top:3px}.store-actions{display:flex;gap:7px}.store-actions .btn{flex:1}

.visit-header{background:#171717;color:#fff;border-radius:18px;padding:18px;display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.visit-header h2{margin:0}.visit-header p{margin:5px 0 0;color:#aaa}.search-box{position:relative}.search-row{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end}.search-row label{margin:0}.search-results{position:absolute;z-index:15;left:0;right:0;top:100%;margin-top:5px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);max-height:310px;overflow:auto}.search-result{width:100%;border:0;border-bottom:1px solid #eee;background:#fff;text-align:left;padding:11px 13px}.search-result:hover{background:#fff5f6}.search-result strong,.search-result small{display:block}.search-result small{color:var(--muted);margin-top:4px}.selected-product{margin-top:14px;border:1px solid #e8b5bc;background:#fff8f9;border-radius:15px;padding:15px}.selected-product h3{margin:0}.selected-product p{margin:5px 0 0;color:var(--muted)}.product-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.lot-builder{margin-top:14px}.lot-row{display:grid;grid-template-columns:1.1fr .55fr .9fr auto;gap:9px;align-items:end;padding:11px;border:1px solid var(--line);border-radius:13px;margin-top:8px;background:#fafafa}.lot-row label{margin:0}.lot-row .remove-lot{margin-bottom:1px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.form-grid label{margin-top:0}.inline-check{display:flex;align-items:center;gap:9px;font-size:12px}.inline-check input{width:auto}.value-box{background:#171717;color:#fff;border-radius:14px;padding:14px 15px;display:flex;align-items:center;justify-content:space-between;margin-top:12px}.value-box small{color:#aaa;display:block;margin-top:3px}.value-box strong{font-size:23px}
.existing-lots{margin-top:16px}.lot-card{border:1px solid var(--line);border-radius:13px;padding:13px;display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:8px}.lot-card p{margin:4px 0 0;color:var(--muted);font-size:11px}.lot-card .table-actions{align-items:center}

.query-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:15px}.product-summary{background:linear-gradient(145deg,#171717,#303030);color:#fff;border-radius:18px;padding:19px}.product-summary h2{margin:0}.product-summary p{color:#bbb}.summary-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:13px}.summary-metrics button{border:1px solid #ffffff10;background:#ffffff12;color:#fff;border-radius:11px;padding:11px;text-align:left}.summary-metrics button:hover{background:#ffffff20;border-color:#ffffff35}.summary-metrics strong,.summary-metrics small{display:block}.summary-metrics strong{font-size:20px}.summary-metrics small{color:#bbb;font-size:9px;margin-top:4px}

.bar-list{display:grid;gap:10px}.bar-row{display:grid;grid-template-columns:minmax(100px,150px) 1fr auto;gap:10px;align-items:center}.bar-row span{font-size:11px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:10px;background:#eceef0;border-radius:999px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,var(--red-dark),var(--red));border-radius:inherit;min-width:3px}.bar-row strong{font-size:11px}
.risk-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.risk-card{width:100%;border-radius:15px;padding:15px;border:1px solid var(--line);background:#fff;text-align:left}.risk-card:hover{border-color:#e5a5ae;transform:translateY(-1px)}.risk-card strong{display:block;font-size:25px;margin-top:8px}.risk-card p{margin:4px 0 0;color:var(--muted);font-size:11px}

.admin-tabs{display:flex;gap:7px;overflow:auto;margin-bottom:14px}.admin-tabs button{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;font-weight:800;font-size:12px}.admin-tabs button.active{background:#171717;color:#fff;border-color:#171717}.admin-toolbar{display:flex;gap:9px;align-items:center;justify-content:space-between;margin-bottom:12px}.admin-toolbar input{max-width:480px}.config-list{display:grid;gap:10px}.config-row{border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.config-row strong,.config-row small{display:block}.config-row small{color:var(--muted);margin-top:4px}
.report-preview{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.report-brand{display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid var(--red);padding-bottom:10px}.report-brand img{height:48px;max-width:128px;object-fit:contain}.report-brand img:last-child{width:48px;border-radius:50%}.report-preview h3{margin:14px 0 5px}.report-lines{display:grid;gap:6px;margin-top:13px}.report-line{display:grid;grid-template-columns:1fr auto;gap:10px;padding:8px 0;border-bottom:1px solid #eee;font-size:11px}.report-total{display:flex;justify-content:space-between;background:#171717;color:#fff;border-radius:11px;padding:12px;margin-top:12px}

dialog{border:0;border-radius:22px;padding:0;width:min(620px,94vw);max-height:92vh;box-shadow:0 28px 80px rgba(0,0,0,.34)}dialog::backdrop{background:#000b}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--line)}.dialog-head small,.dialog-head strong{display:block}.dialog-head small{font-size:9px;color:var(--red);font-weight:900;letter-spacing:.12em}.dialog-body{padding:18px;overflow:auto;max-height:calc(92vh - 64px)}.camera-frame{position:relative;background:#111;overflow:hidden}.scanner-dialog video{display:block;width:100%;min-height:280px;max-height:55vh;object-fit:cover}.scan-line{position:absolute;left:12%;right:12%;top:50%;height:2px;background:var(--red);box-shadow:0 0 12px var(--red);animation:scan 2.2s ease-in-out infinite}@keyframes scan{50%{transform:translateY(70px)}}.scanner-dialog>p,.scanner-dialog>.manual-code,.scanner-dialog>.btn{margin-left:18px;margin-right:18px}.scanner-dialog>.btn{width:calc(100% - 36px);margin-bottom:18px}.scanner-dialog>p{color:var(--muted);font-size:12px}.quantity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.quantity-grid label{margin:0}.distribution-total{margin-top:12px;border-radius:12px;padding:12px;background:#f2f3f4;display:flex;justify-content:space-between}.distribution-total.valid{background:#eaf7ef;color:#155f35}.distribution-total.invalid{background:#feecef;color:#9c0015}
.toast{position:fixed;right:18px;top:82px;z-index:200;background:#171717;color:#fff;border-left:4px solid var(--red);border-radius:12px;padding:12px 15px;box-shadow:var(--shadow);max-width:360px;opacity:0;transform:translateY(-8px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}
.mobile-nav{display:none}.sidebar-backdrop{display:none}

@media(max-width:1180px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.store-grid{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(3,1fr)}.summary-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){:root{--sidebar:228px}.grid-2,.query-hero{grid-template-columns:minmax(0,1fr)}.risk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:0 16px}}
@media(max-width:760px){
  .sidebar{transform:translateX(-105%);transition:transform .22s;width:min(286px,86vw);box-shadow:var(--shadow)}body.menu-open .sidebar{transform:none}.workspace{margin-left:0}.sidebar-backdrop{position:fixed;inset:0;z-index:35;border:0;background:#0008}body.menu-open .sidebar-backdrop{display:block}.menu-btn{display:block;margin-right:7px}.topbar{height:64px}.sync-box>div{display:none}.sync-box{gap:3px}.top-title>strong{font-size:16px}
  main{padding:16px 14px 88px}.page-head{display:grid}.page-actions{width:100%}.page-actions .btn{flex:1;min-width:0}.hero{display:grid;padding:22px;min-width:0}.hero p{overflow-wrap:anywhere}.hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.hero-actions .btn{min-width:0;white-space:normal;padding-left:9px;padding-right:9px;font-size:12px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi-card{padding:15px;min-width:0}.kpi-card strong{font-size:25px;white-space:normal;overflow-wrap:anywhere}.grid-3{grid-template-columns:1fr}.store-grid{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.filters .filter-actions{grid-column:1/-1}.form-grid{grid-template-columns:1fr}.lot-row{grid-template-columns:1fr 1fr}.lot-row .condition-field{grid-column:1/-1}.lot-row .remove-lot{grid-column:1/-1}.summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.search-row{grid-template-columns:1fr}.visit-header{align-items:flex-start;display:grid}.test-strip{align-items:flex-start;flex-wrap:wrap}
  .mobile-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;height:70px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-around}.mobile-nav button{min-width:62px;border:0;background:#fff;color:#74787e;font-size:9px;font-weight:800;padding:8px 4px}.mobile-nav button span{display:block;font-size:20px;margin-bottom:3px}.mobile-nav button.active{color:var(--red)}.mobile-nav .scan-nav{width:58px;height:58px;min-width:58px;border-radius:50%;background:var(--red);color:#fff;margin-top:-18px;box-shadow:0 8px 20px rgba(213,0,28,.3)}.mobile-nav .scan-nav span{font-size:25px;margin:0}
}
@media(max-width:480px){.login-screen{padding:13px}.login-card{padding:24px 21px;border-radius:23px}.filters{grid-template-columns:1fr}.lot-row{grid-template-columns:1fr}.lot-row .condition-field,.lot-row .remove-lot{grid-column:auto}.risk-grid{grid-template-columns:1fr}.quantity-grid{grid-template-columns:1fr}.bar-row{grid-template-columns:110px 1fr auto}.kpi-card span{font-size:11px}.page-head h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Estilo visual operativo FMD / Texaco */
:root{--sidebar:212px;--canvas:#f7f8fa;--navy:#06151d;--orange:#ff6a00;--purple:#6f32a8;--teal:#008f88}
.sidebar{background:linear-gradient(180deg,#06151d,#031018)}
.sidebar-brand{height:112px;padding:13px;border-bottom:1px solid #ffffff14;justify-content:center}
.side-nav{padding:13px 10px}.nav-section{color:#75818a;padding:15px 10px 7px}.nav-link{padding:12px 11px;border-radius:8px;font-size:14px;color:#e0e5e8}.nav-link span{font-size:19px}.nav-link.active{background:#df071d;box-shadow:0 7px 18px #d5001c33}.sidebar-footer{background:#04121a}.logout-link{color:#ff4454}
.topbar{height:92px;padding:0 28px;background:#fff;backdrop-filter:none}.top-title>strong{font-size:27px;letter-spacing:-.025em}.top-title>small{font-size:13px;color:#333;margin-top:5px}.topbar-texaco+.sync-box{margin-left:18px}body[data-route="home"] .sync-box{display:none}
body[data-route="home"] main{max-width:1540px;padding-top:20px}body[data-route="home"] main>.test-strip{display:none}
.home-welcome{display:none;align-items:center;justify-content:space-between;margin-bottom:26px}.home-welcome h1{margin:0;font-size:29px;letter-spacing:-.025em}.home-welcome p{margin:5px 0 0;color:#555;font-size:17px}.home-bell{position:relative;width:54px;height:54px;border:1px solid #eceff1;border-radius:50%;background:#fff;font-size:28px}.home-bell b,.home-update .home-filter-icon b{position:absolute;right:-4px;top:-6px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#df071d;color:#fff;font-size:11px}
.home-overview,.home-section{margin-bottom:18px}.home-overview>h2,.home-section>h2,.home-panel>h2,.home-section-head h2{margin:0 0 11px;font-size:15px;letter-spacing:.01em}.home-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-filters>label,.home-update{min-height:74px;margin:0;border:1px solid #e8ebee;border-radius:10px;background:#fff;box-shadow:0 3px 12px #1020300a;padding:13px 15px;display:flex;align-items:center;gap:13px}.home-filters>label>span:last-child,.home-update>span:last-child{min-width:0;flex:1}.home-filters small,.home-update small{display:block;font-size:11px;font-weight:500;color:#555}.home-filters select{border:0;border-radius:0;padding:3px 25px 0 0;box-shadow:none;font-weight:800;background-color:#fff;white-space:nowrap;text-overflow:ellipsis}.home-filter-icon{position:relative;width:38px;height:38px;display:grid;place-items:center;font-size:24px;color:#222;flex:0 0 auto}.home-filter-icon.red{color:#d8071d}.home-update strong{display:block;margin-top:5px;font-size:12px}.home-update .home-filter-icon{border:1px solid #e8ebee;border-radius:50%}
.overview-kpis{display:grid;gap:14px}.overview-kpis.administrador{grid-template-columns:repeat(5,minmax(0,1fr))}.overview-kpis.auditoria,.overview-kpis.encargado{grid-template-columns:repeat(4,minmax(0,1fr))}.home-kpi{min-width:0;min-height:272px;border:1px solid #e9ecef;border-radius:12px;background:#fff;padding:18px 16px 14px;box-shadow:0 3px 14px #1020300b;text-align:left;display:flex;flex-direction:column;color:#111;transition:transform .15s,box-shadow .15s}.home-kpi:hover{transform:translateY(-2px);box-shadow:0 10px 26px #10203017}.home-kpi-body{display:grid;gap:13px}.home-kpi-body>span:last-child{min-width:0}.home-kpi-icon{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font-size:34px;font-weight:500}.home-kpi-body strong{display:block;font-size:27px;line-height:1.05;letter-spacing:-.035em;overflow-wrap:anywhere}.home-kpi-body b{display:block;margin-top:6px;font-size:13px;line-height:1.25}.home-kpi-body small{display:block;margin-top:4px;font-size:11px;color:#333}.home-kpi.red .home-kpi-icon{color:#d8071d;background:#fde8eb}.home-kpi.red .home-kpi-body strong{color:#d8071d}.home-kpi.orange .home-kpi-icon{color:var(--orange);background:#fff0e2}.home-kpi.orange .home-kpi-body strong{color:var(--orange)}.home-kpi.green .home-kpi-icon{color:#087b42;background:#e1f5e9}.home-kpi.green .home-kpi-body strong{color:#087b42}.home-kpi.blue .home-kpi-icon{color:#0752a2;background:#e6f0fb}.home-kpi.blue .home-kpi-body strong{color:#0752a2}.home-kpi.purple .home-kpi-icon{color:var(--purple);background:#f0e9f8}.home-kpi.purple .home-kpi-body strong{color:var(--purple)}.home-kpi-meta{display:grid;grid-template-columns:1fr auto;margin-top:14px;padding-top:11px;border-top:1px solid #edf0f2;gap:4px 8px}.home-kpi-meta small{font-size:10px;color:#555}.home-kpi-meta strong{font-size:13px}.home-kpi-link{margin-top:auto;padding:10px 12px 0;border-top:1px solid #edf0f2;color:currentColor;font-size:11px;font-weight:850;display:flex;justify-content:space-between}.home-kpi.red .home-kpi-link{color:#d8071d}.home-kpi.orange .home-kpi-link{color:var(--orange)}.home-kpi.green .home-kpi-link{color:#087b42}.home-kpi.blue .home-kpi-link{color:#0752a2}.home-kpi.purple .home-kpi-link{color:var(--purple)}
.home-analysis-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:16px;margin:16px 0}.home-panel{min-width:0;background:#fff;border:1px solid #e9ecef;border-radius:12px;padding:16px;box-shadow:0 3px 14px #1020300a}.home-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.home-section-head h2{margin:0}.home-section-head>button{border:0;background:transparent;color:#d8071d;font-weight:850;font-size:12px}.home-section-head>button b{font-size:20px;vertical-align:-2px}.risk-band{display:grid;grid-template-columns:repeat(4,1fr);height:10px;border-radius:999px;overflow:hidden;margin:14px 0 12px}.risk-band span.high{background:#d8071d}.risk-band span.medium{background:var(--orange)}.risk-band span.low{background:#f2b714}.risk-band span.safe{background:#26985b}.risk-levels{display:grid;grid-template-columns:repeat(4,1fr)}.risk-levels>div{display:grid;gap:5px;padding:3px 12px;border-right:1px solid #edf0f2}.risk-levels>div:first-child{padding-left:0}.risk-levels>div:last-child{border:0}.risk-levels strong{font-size:12px}.risk-levels i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px}.risk-levels i.high{background:#d8071d}.risk-levels i.medium{background:var(--orange)}.risk-levels i.low{background:#f2b714}.risk-levels i.safe{background:#26985b}.risk-levels small{font-size:11px;color:#555}.risk-levels b{font-size:13px}
.home-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.home-quick-grid button{border:1px solid #e7eaed;border-radius:10px;background:#fff;min-height:142px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}.home-quick-grid button span{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:25px}.home-quick-grid button strong{font-size:11px;line-height:1.2}.home-quick-grid button small{font-size:9px;color:#555}.home-quick-grid .red span{background:#fde8eb;color:#d8071d}.home-quick-grid .green span{background:#e1f5e9;color:#087b42}.home-quick-grid .amber span{background:#fff4d8;color:#aa7200}.home-quick-grid .purple span{background:#f0e9f8;color:var(--purple)}
.home-stores-panel{margin-top:16px}.home-store-list{display:grid}.home-store-row{width:100%;display:grid;grid-template-columns:52px minmax(0,1fr) auto 22px;gap:11px;align-items:center;border:0;border-bottom:1px solid #edf0f2;background:#fff;padding:11px 5px;text-align:left;position:relative}.home-store-row:before{content:"";position:absolute;left:-16px;top:4px;bottom:4px;width:4px;border-radius:0 4px 4px 0}.home-store-row.high:before{background:#d8071d}.home-store-row.medium:before{background:var(--orange)}.home-store-row.low:before{background:#f2b714}.home-store-row.safe:before{background:#26985b}.home-store-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:22px}.home-store-icon.high{background:#d8071d}.home-store-icon.medium{background:var(--orange)}.home-store-icon.low{background:#f2b714}.home-store-icon.safe{background:#26985b}.home-store-copy{min-width:0}.home-store-copy strong,.home-store-copy small{display:block}.home-store-copy strong{font-size:13px}.home-store-copy small{font-size:10px;margin-top:4px;color:#333}.red-text{color:#d8071d}.orange-text{color:var(--orange)}.purple-text{color:var(--purple)}.risk-pill{border-radius:999px;padding:6px 12px;font-size:9px;font-style:normal;font-weight:900}.risk-pill.high{background:#fde2e5;color:#bd0015}.risk-pill.medium{background:#fff0df;color:#d15d00}.risk-pill.low{background:#fff6d9;color:#ae7900}.risk-pill.safe{background:#e5f5ea;color:#157341}.row-arrow{font-size:24px;color:#555}.home-outline-action{margin-top:12px;border:1px solid #e7eaed;border-radius:8px;background:#fff;color:#d8071d;padding:9px 14px;font-size:11px;font-weight:850}.home-outline-action b{font-size:18px;vertical-align:-2px}
.home-info{margin-top:16px;border:1px solid #dce8f2;border-radius:10px;background:#f5faff;padding:12px 15px;display:flex;align-items:center;gap:10px;color:#30383f}.home-info>span{color:#1673c7;font-size:22px}.home-info p{margin:0;flex:1;font-size:10px}.home-info small{font-size:9px}.home-my-store{width:100%;border:1px solid #e7eaed;border-radius:12px;background:#fff;box-shadow:0 3px 14px #1020300a;padding:18px;display:grid;grid-template-columns:60px 1fr auto;align-items:center;gap:14px;text-align:left}.home-my-store>span:nth-child(2) strong,.home-my-store>span:nth-child(2) small{display:block}.home-my-store>span:nth-child(2) strong{font-size:19px}.home-my-store>span:nth-child(2) small{margin-top:5px;color:#444}.home-my-store>b{font-size:30px;color:#555}.home-alert-list{display:grid;gap:8px}.home-alert-row{width:100%;border:1px solid #e9ecef;border-left:5px solid;border-radius:10px;background:#fff;padding:11px 12px;display:grid;grid-template-columns:44px minmax(0,1fr) auto 16px;align-items:center;gap:10px;text-align:left}.home-alert-row>span:first-child{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-size:23px}.home-alert-row>span:nth-child(2) strong,.home-alert-row>span:nth-child(2) small{display:block}.home-alert-row>span:nth-child(2) small{margin-top:4px;color:#444}.home-alert-row em{border-radius:999px;padding:5px 12px;font-size:9px;font-style:normal;font-weight:900}.home-alert-row.high{border-left-color:#d8071d}.home-alert-row.high>span:first-child,.home-alert-row.high em{background:#fde8eb;color:#d8071d}.home-alert-row.medium{border-left-color:var(--orange)}.home-alert-row.medium>span:first-child,.home-alert-row.medium em{background:#fff0e2;color:var(--orange)}.home-alert-row.low{border-left-color:#0871c9}.home-alert-row.low>span:first-child,.home-alert-row.low em{background:#e6f0fb;color:#0752a2}.home-alert-row>b{font-size:24px;color:#555}.home-scan-cta{width:100%;margin-top:16px;border:0;border-radius:10px;background:#df071d;color:#fff;padding:13px 17px;display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:12px}.home-scan-cta span{width:42px;height:42px;border:1px solid #ffffff88;border-radius:8px;display:grid;place-items:center;font-size:24px}.home-scan-cta strong{font-size:17px}.home-scan-cta>b{font-size:28px}.home-scan-note{display:grid;grid-template-columns:36px 1fr 42px;gap:10px;align-items:center;padding:11px 15px;border-bottom:3px solid #df071d;background:#fff}.home-scan-note span{color:#d8071d;font-size:25px}.home-scan-note p{margin:0;font-size:12px}.home-scan-note>b{color:#d8071d;font-size:25px}

@media(max-width:1180px){.overview-kpis.administrador{grid-template-columns:repeat(3,minmax(0,1fr))}.home-analysis-grid{grid-template-columns:1fr}.home-quick-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:760px){
  .topbar{height:112px;padding:7px 14px;display:grid;grid-template-columns:74px minmax(0,1fr) 86px;gap:8px;align-items:center}.topbar .menu-btn{position:absolute;left:8px;bottom:-34px;z-index:3;background:#fff;border:1px solid #e7eaed;box-shadow:0 4px 12px #10203015;font-size:16px}body[data-route="home"] .topbar .menu-btn{display:none}.top-title{text-align:center}.top-title>strong{font-size:18px;line-height:1.12}.top-title>small{display:none}.topbar-texaco{justify-content:flex-end;gap:5px}.topbar-texaco strong{font-size:13px}.sync-box{display:none}
  body[data-route="home"] main{padding:24px 16px 96px;background:#fff}body[data-route="home"] .topbar{position:relative}.home-welcome{display:flex}.home-overview>h2,.home-section>h2,.home-panel>h2,.home-section-head h2{font-size:14px}.home-filters{grid-template-columns:1fr}.home-filters>label,.home-update{min-height:66px}.home-update{display:none}.overview-kpis.administrador,.overview-kpis.auditoria,.overview-kpis.encargado{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.home-kpi{min-height:138px;padding:12px}.home-kpi-body{grid-template-columns:50px 1fr;align-items:center;gap:9px}.home-kpi-icon{width:50px;height:50px;font-size:27px}.home-kpi-body strong{font-size:24px}.home-kpi-body b{font-size:12px}.home-kpi-body small{font-size:10px}.home-kpi-meta,.home-kpi-link{display:none}.home-analysis-grid{display:block}.home-analysis-grid .home-panel{margin-top:14px}.home-panel{padding:13px;border-radius:10px}.home-quick-grid{grid-template-columns:repeat(2,1fr)}.risk-levels>div{padding:3px 6px}.risk-levels strong{font-size:10px}.risk-levels small,.risk-levels b{font-size:9px}.home-store-row{grid-template-columns:48px minmax(0,1fr) auto 14px;padding:10px 2px}.home-store-row:before{left:-13px}.home-store-icon{width:44px;height:44px}.home-store-copy strong{font-size:14px}.home-store-copy small{font-size:10px}.risk-pill{padding:5px 9px}.home-info{display:none}.home-my-store{grid-template-columns:56px 1fr auto;padding:14px}.home-my-store>span:nth-child(2) strong{font-size:16px}.home-my-store>span:nth-child(2) small{font-size:10px}.home-alert-row{grid-template-columns:40px minmax(0,1fr) auto 12px}.home-alert-row>span:nth-child(2) strong{font-size:12px}.home-alert-row>span:nth-child(2) small{font-size:10px}.home-scan-cta strong{font-size:15px}
}
@media(max-width:420px){.topbar{grid-template-columns:66px minmax(0,1fr) 78px;padding-left:10px;padding-right:10px}.topbar-fmd{width:66px}.topbar-texaco img{width:30px;height:30px}.topbar-texaco strong{font-size:11px}.home-welcome h1{font-size:24px}.home-kpi-body{grid-template-columns:45px 1fr}.home-kpi-icon{width:45px;height:45px}.home-kpi-body strong{font-size:21px}.home-store-row{grid-template-columns:44px minmax(0,1fr) auto 12px}.home-store-icon{width:40px;height:40px}.risk-pill{font-size:8px;padding:4px 7px}.home-store-copy small .purple-text{display:none}}
.home-kpi.teal .home-kpi-icon{color:var(--teal);background:#dff6f3}.home-kpi.teal .home-kpi-body strong,.home-kpi.teal .home-kpi-link{color:var(--teal)}.home-kpi.mobile-only{display:none}
@media(max-width:760px){.home-kpi.mobile-only{display:flex}}

/* Refinamiento visual aprobado Roceli / FMD / Texaco */
.ui-icon{display:block;width:1em;height:1em;flex:0 0 auto}
body[data-route="home"]{background:#f6f7f9}
.sidebar{background:linear-gradient(180deg,#04141d 0%,#031019 66%,#020d14 100%);box-shadow:12px 0 38px rgba(3,16,25,.09)}
.sidebar-brand{height:126px;padding:17px 18px;background:linear-gradient(180deg,rgba(255,255,255,.018),transparent)}
.sidebar-fmd{width:142px;height:82px}
.sidebar-brand:after{top:17px;font-size:23px}
.side-nav{padding:12px 11px 18px;gap:4px}
.nav-section{padding:15px 12px 7px;color:#70808a;font-size:8px;letter-spacing:.19em}
.nav-link{min-height:47px;padding:11px 13px;border-radius:10px;color:#d8e0e4;font-size:13px;gap:12px;transition:background .18s,color .18s,transform .18s,box-shadow .18s}
.nav-link span{width:22px;display:grid;place-items:center}
.nav-link span .ui-icon{width:20px;height:20px;stroke-width:1.7}
.nav-link:hover{transform:translateX(2px);background:#ffffff12}
.nav-link.active{background:linear-gradient(135deg,#e3071c,#d5001c);box-shadow:0 10px 24px rgba(213,0,28,.27)}
.sidebar-footer{padding:14px 12px 18px;background:#031018;border-top-color:#ffffff12}
.sidebar-footer>div{padding:0 9px 13px;display:flex;align-items:center;gap:10px}
.sidebar-footer>div>span:last-child{min-width:0}
.sidebar-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ffffff16;border:1px solid #ffffff1f;color:#fff;font-size:10px;font-weight:900;letter-spacing:.04em}
.sidebar-footer strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-footer small{font-size:10px;color:#93a0a8}
.logout-link{color:#ff4a59}

.topbar{height:100px;padding:0 32px;border-bottom:1px solid #e8eaed;box-shadow:0 1px 0 rgba(5,19,27,.02)}
.top-title>strong{font-size:29px;line-height:1;letter-spacing:-.04em;color:#101418}
.top-title>strong span{display:inline}
.top-title>small{margin-top:8px;font-size:13px;color:#4f565c}
.topbar-texaco{gap:10px}.topbar-texaco img{width:46px;height:46px}.topbar-texaco strong{font-size:21px;letter-spacing:.015em}
body[data-route="home"] main{max-width:1580px;padding:24px 30px 98px;background:linear-gradient(180deg,#f8f9fa 0,#f5f7f9 100%)}

.home-overview,.home-section{margin-bottom:20px}
.home-overview>h2,.home-section>h2,.home-panel>h2,.home-section-head h2{font-size:14px;letter-spacing:.025em;color:#171b1e}
.home-filters{gap:18px}
.home-filters>label,.home-update{min-height:78px;border-color:#e5e8eb;border-radius:14px;padding:14px 17px;box-shadow:0 7px 22px rgba(4,20,29,.045);transition:transform .18s,border-color .18s,box-shadow .18s}
.home-filters>label:hover{transform:translateY(-1px);border-color:#d8dde1;box-shadow:0 11px 28px rgba(4,20,29,.075)}
.home-filter-icon{width:42px;height:42px;border-radius:12px;background:#f7f8f9;color:#1b2227;font-size:24px}
.home-filter-icon.red{background:#fff0f2;color:#d5001c}
.home-filter-icon .ui-icon{width:25px;height:25px}
.home-update .home-filter-icon{border:1px solid #eceff1;background:#fff}
.home-filters small,.home-update small{font-size:10px;color:#61696f;letter-spacing:.01em}
.home-filters select{font-size:13px;color:#151a1d}
.home-update strong{font-size:11px;color:#242a2e}

.overview-kpis{gap:16px}
.home-kpi{position:relative;min-height:286px;border-color:#e6e9ec;border-radius:16px;padding:19px 17px 15px;box-shadow:0 8px 26px rgba(4,20,29,.055);overflow:hidden;transition:transform .18s,border-color .18s,box-shadow .18s}
.home-kpi:after{content:"";position:absolute;inset:0 0 auto;height:3px;background:currentColor;opacity:0;transition:opacity .18s}
.home-kpi:hover{transform:translateY(-4px);border-color:#d8dde1;box-shadow:0 18px 38px rgba(4,20,29,.11)}
.home-kpi:hover:after{opacity:1}
.home-kpi-body{gap:14px}
.home-kpi-icon{width:62px;height:62px;font-size:31px;border:1px solid rgba(255,255,255,.65);box-shadow:inset 0 0 0 1px rgba(0,0,0,.018)}
.home-kpi-icon .ui-icon{width:34px;height:34px;stroke-width:1.65}
.home-kpi-body strong{font-size:29px;line-height:1;letter-spacing:-.045em}
.home-kpi-body b{margin-top:8px;font-size:13px;line-height:1.3}
.home-kpi-body small{margin-top:5px;color:#555e64;line-height:1.35}
.home-kpi-meta{margin-top:15px;padding-top:13px;border-top-color:#eceff1}
.home-kpi-meta small{font-size:10px;color:#61696f}.home-kpi-meta strong{font-size:13px;color:#171b1e}
.home-kpi-link{padding:12px 1px 1px;border-top-color:#eceff1;align-items:center}
.home-kpi-link b{display:grid;place-items:center}.home-kpi-link .ui-icon{width:16px;height:16px;stroke-width:2.2}

.home-analysis-grid{gap:18px;margin:18px 0}
.home-panel{border-color:#e5e8eb;border-radius:16px;padding:18px;box-shadow:0 8px 26px rgba(4,20,29,.05)}
.home-section-head{margin-bottom:12px}.home-section-head>button{display:flex;align-items:center;gap:4px;font-size:11px}.home-section-head>button b{display:grid;place-items:center}.home-section-head>button .ui-icon{width:15px;height:15px}
.risk-band{height:11px;margin:16px 0 14px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.025)}
.risk-levels>div{gap:7px;padding:4px 14px}.risk-levels strong{font-size:11px}.risk-levels small{font-size:10px;color:#626b70}.risk-levels b{font-size:12px}
.home-quick-grid{gap:11px}
.home-quick-grid button{min-height:148px;border-color:#e4e8eb;border-radius:13px;box-shadow:0 5px 17px rgba(4,20,29,.035);transition:transform .18s,box-shadow .18s,border-color .18s}
.home-quick-grid button:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(4,20,29,.085);border-color:#d5dbe0}
.home-quick-grid button span{width:49px;height:49px}.home-quick-grid button span .ui-icon{width:26px;height:26px;stroke-width:1.7}
.home-quick-grid button strong{font-size:11px}.home-quick-grid button small{font-size:9px}
.home-quick-grid .red{background:linear-gradient(180deg,#fff,#fff9fa)}.home-quick-grid .green{background:linear-gradient(180deg,#fff,#f8fdf9)}.home-quick-grid .amber{background:linear-gradient(180deg,#fff,#fffdf7)}.home-quick-grid .purple{background:linear-gradient(180deg,#fff,#fcfaff)}

.home-stores-panel{margin-top:18px}
.home-store-row{grid-template-columns:56px minmax(0,1fr) auto 22px;padding:13px 7px;gap:13px;transition:background .16s,transform .16s}
.home-store-row:hover{background:#fafbfc;transform:translateX(2px)}
.home-store-row:before{left:-18px;top:6px;bottom:6px;width:5px}
.home-store-icon{width:49px;height:49px;font-size:24px;box-shadow:0 6px 15px rgba(4,20,29,.10)}
.home-store-icon .ui-icon{width:25px;height:25px;stroke-width:1.7}
.home-store-copy strong{font-size:13px}.home-store-copy small{font-size:10px;line-height:1.35}
.row-arrow{display:grid;place-items:center}.row-arrow .ui-icon{width:18px;height:18px}
.home-outline-action{display:inline-flex;align-items:center;gap:5px;border-radius:10px}.home-outline-action b{display:grid}.home-outline-action .ui-icon{width:15px;height:15px}

.home-welcome h1{font-weight:850}.home-bell{display:grid;place-items:center}.home-bell>.ui-icon{width:26px;height:26px}
.home-my-store{border-radius:15px;padding:17px;box-shadow:0 8px 24px rgba(4,20,29,.06)}
.home-my-store .store-address{display:flex!important;align-items:center;gap:4px}.home-my-store .store-address .ui-icon{width:13px;height:13px}
.home-my-store>b{display:grid;place-items:center}.home-my-store>b .ui-icon{width:22px;height:22px}
.home-alert-row{border-radius:13px;box-shadow:0 5px 17px rgba(4,20,29,.035)}
.home-alert-row>span:first-child .ui-icon{width:23px;height:23px}.home-alert-row>b{display:grid;place-items:center}.home-alert-row>b .ui-icon{width:17px;height:17px}
.home-scan-cta{border-radius:13px;min-height:72px;box-shadow:0 12px 28px rgba(213,0,28,.22);transition:transform .18s,box-shadow .18s}
.home-scan-cta:hover{transform:translateY(-2px);box-shadow:0 17px 34px rgba(213,0,28,.28)}
.home-scan-cta span .ui-icon{width:27px;height:27px}.home-scan-cta>b{display:grid}.home-scan-cta>b .ui-icon{width:23px;height:23px}
.home-scan-note span .ui-icon,.home-scan-note>b .ui-icon{width:24px;height:24px}
.home-info{border-radius:12px}.home-info>span .ui-icon{width:22px;height:22px}

@media(min-width:900px){.overview-kpis.administrador{grid-template-columns:repeat(5,minmax(0,1fr))}}

@media(max-width:760px){
  body[data-route="home"]{background:#fff}
  .topbar{height:122px;padding:8px 16px;grid-template-columns:78px minmax(0,1fr) 92px;border-bottom-color:#edf0f2;box-shadow:none}
  .topbar-fmd{width:76px;height:57px}.topbar-texaco img{width:36px;height:36px}.topbar-texaco strong{font-size:14px}
  .top-title>strong{font-size:18px;line-height:1.02;letter-spacing:-.025em}.top-title>strong span{display:block}.top-title>strong span:first-child{font-size:20px}.top-title>strong span:last-child{font-size:17px;margin-top:4px}.top-title>small{display:none}
  body[data-route="home"] main{padding:24px 16px 104px;background:#fff}
  .home-welcome{margin-bottom:27px}.home-welcome h1{font-size:27px;letter-spacing:-.035em}.home-welcome p{font-size:16px;color:#555e64}.home-bell{width:50px;height:50px}
  .home-overview>h2,.home-section>h2,.home-panel>h2,.home-section-head h2{font-size:13px;letter-spacing:.02em}
  .home-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .home-filters>label{min-height:67px;padding:10px 11px;border-radius:12px;gap:8px}.home-filter-icon{width:36px;height:36px;border-radius:10px}.home-filter-icon .ui-icon{width:21px;height:21px}.home-filters select{font-size:11px;padding-right:18px}.home-filters small{font-size:9px}
  .overview-kpis.administrador,.overview-kpis.auditoria,.overview-kpis.encargado{gap:10px}
  .home-kpi{min-height:150px;padding:13px;border-radius:14px;box-shadow:0 7px 20px rgba(4,20,29,.06)}
  .home-kpi:after{display:none}.home-kpi:hover{transform:none}
  .home-kpi-body{grid-template-columns:50px minmax(0,1fr);gap:10px}.home-kpi-icon{width:50px;height:50px}.home-kpi-icon .ui-icon{width:27px;height:27px}
  .home-kpi-body strong{font-size:24px}.home-kpi-body b{font-size:11px;margin-top:6px}.home-kpi-body small{font-size:9px}
  .home-kpi.green .home-kpi-body strong{font-size:20px;white-space:nowrap;letter-spacing:-.055em}
  .home-panel{padding:14px;border-radius:14px;box-shadow:0 6px 20px rgba(4,20,29,.05)}
  .home-analysis-grid .home-panel{margin-top:15px}.home-quick-grid button{min-height:122px}
  .home-store-row{grid-template-columns:48px minmax(0,1fr) auto 14px;padding:11px 2px;gap:9px}.home-store-row:before{left:-14px}.home-store-icon{width:44px;height:44px}.home-store-icon .ui-icon{width:23px;height:23px}
  .home-store-copy strong{font-size:14px}.home-store-copy small{font-size:9px}.risk-pill{font-size:8px}
  .home-alert-row{padding:11px 9px}.home-scan-cta{margin-top:18px}
  .mobile-nav{height:76px;box-shadow:0 -8px 24px rgba(4,20,29,.055);border-top-color:#eceff1}.mobile-nav button{font-size:9px}.mobile-nav button span{height:25px;display:grid;place-items:center}.mobile-nav button span .ui-icon{width:23px;height:23px}.mobile-nav .scan-nav{width:60px;height:60px;min-width:60px;margin-top:-19px}.mobile-nav .scan-nav span .ui-icon{width:28px;height:28px}
}

@media(max-width:390px){
  .topbar{grid-template-columns:68px minmax(0,1fr) 80px;padding-left:10px;padding-right:10px}.topbar-fmd{width:66px}.topbar-texaco strong{font-size:11px}.topbar-texaco img{width:32px;height:32px}
  .top-title>strong span:first-child{font-size:18px}.top-title>strong span:last-child{font-size:15px}
  .home-welcome h1{font-size:24px}.home-kpi-body{grid-template-columns:44px minmax(0,1fr)}.home-kpi-icon{width:44px;height:44px}.home-kpi-icon .ui-icon{width:24px;height:24px}.home-kpi-body strong{font-size:21px}
}

/* Pantalla de ingreso moderna Roceli */
.login-screen{padding:28px;background:radial-gradient(circle at 82% 12%,rgba(213,0,28,.22),transparent 30%),radial-gradient(circle at 12% 86%,rgba(255,255,255,.06),transparent 26%),#070b0e}
.login-shell{position:relative;width:min(1120px,100%);min-height:min(700px,calc(100vh - 56px));display:grid;grid-template-columns:minmax(0,1.06fr) minmax(430px,.94fr);overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:32px;background:#fff;box-shadow:0 34px 95px rgba(0,0,0,.44)}
.login-visual{position:relative;isolation:isolate;display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:38px 44px 34px;color:#fff;background:linear-gradient(145deg,#071923 0%,#071219 48%,#23070b 76%,#67000e 100%)}
.login-visual:before{content:"";position:absolute;z-index:-1;width:390px;height:390px;right:-175px;bottom:-155px;border:72px solid rgba(255,255,255,.055);border-radius:50%}
.login-visual:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(115deg,transparent 48%,rgba(213,0,28,.12));pointer-events:none}
.login-visual-glow{position:absolute;z-index:-1;border-radius:50%;filter:blur(4px);pointer-events:none}.login-visual-glow.glow-one{width:240px;height:240px;right:-90px;top:-75px;background:rgba(213,0,28,.25)}.login-visual-glow.glow-two{width:170px;height:170px;left:-95px;bottom:90px;background:rgba(255,255,255,.045)}
.login-visual .official-brand{min-height:92px;justify-content:flex-start;gap:14px;padding:0 0 20px;border-bottom:1px solid rgba(255,255,255,.13)}
.login-visual .brand-tile{width:148px;height:74px;padding:6px 11px;border:1px solid rgba(255,255,255,.22);border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 14px 32px rgba(0,0,0,.16)}
.login-visual .brand-tile .logo-fmd{width:112px;height:63px}.login-visual .texaco-tile{width:74px;padding:7px}.login-visual .texaco-tile .logo-texaco{width:58px;height:58px}.login-visual .brand-divider{height:46px;background:rgba(255,255,255,.24)}
.login-visual-copy{margin:auto 0 44px;max-width:480px}.login-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 18px;color:#fff;font-size:10px;font-weight:900;letter-spacing:.2em}.login-eyebrow:before{content:"";width:34px;height:3px;border-radius:4px;background:#e3071c;box-shadow:0 0 18px rgba(227,7,28,.75)}
.login-visual-copy h2{margin:0;font-size:clamp(40px,4.2vw,58px);line-height:.98;letter-spacing:-.052em}.login-visual-copy h2 span{color:#ff4455}.login-visual-copy>p:last-child{max-width:440px;margin:22px 0 0;color:#c7d0d5;font-size:15px;line-height:1.65}
.login-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:24px}.login-benefits>span{min-width:0;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(255,255,255,.055);padding:12px 11px;backdrop-filter:blur(8px)}.login-benefits b,.login-benefits small{display:block}.login-benefits b{color:#ff4455;font-size:11px;letter-spacing:.08em}.login-benefits small{margin-top:5px;color:#e5eaed;font-size:10px;line-height:1.3}
.login-local-badge{align-self:flex-start;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.07);padding:7px 11px;color:#cbd3d8;font-size:8px;font-weight:900;letter-spacing:.15em}

.login-panel{display:grid;place-items:center;min-width:0;background:linear-gradient(180deg,#fff,#fbfbfc)}
.login-panel .login-card{width:100%;max-width:510px;border-radius:0;background:transparent;padding:48px 50px;box-shadow:none}
.login-access-mark{display:flex;align-items:center;gap:10px;margin-bottom:20px}.login-access-mark span{width:39px;height:4px;border-radius:4px;background:#d5001c}.login-access-mark b{font-size:9px;letter-spacing:.19em;color:#333b40}
.login-panel .login-card h1{margin:0 0 11px;line-height:1}.login-panel .login-card h1 span{font-size:clamp(34px,3.5vw,45px)}.login-panel .login-card h1 small{margin-top:7px;font-size:clamp(21px,2.4vw,29px);color:#4e565c}
.login-intro{margin:0 0 22px;font-size:13px;line-height:1.55}
.login-panel .notice.warning{display:grid;grid-template-columns:29px 1fr;align-items:center;gap:10px;margin-bottom:21px;border:1px solid #e4e7e9;border-radius:13px;background:#f6f7f8;color:#3a4146;padding:11px 12px}.login-panel .notice.warning .notice-dot{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#fde8eb;color:#d5001c;font-weight:900}.login-panel .notice.warning span:last-child{min-width:0}.login-panel .notice.warning strong,.login-panel .notice.warning small{display:block;white-space:normal}.login-panel .notice.warning strong{font-size:11px}.login-panel .notice.warning small{margin-top:2px;color:#687078;font-size:9px;line-height:1.35}
.login-fields{display:grid;gap:13px}.login-fields label{margin:0;gap:8px;font-size:11px;letter-spacing:.01em}.login-fields select,.login-fields input{height:54px;border:1px solid #dfe3e6;border-radius:13px;background-color:#fff;padding:0 15px;font-size:13px;font-weight:750;box-shadow:0 5px 16px rgba(4,20,29,.035)}
.login-fields input:focus,.login-fields select:focus{outline:3px solid rgba(213,0,28,.11);border-color:#d5001c}.password-field{position:relative;display:block}.password-field input{width:100%;padding-right:58px}.password-field button{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;border-radius:9px;background:#fff;padding:8px 9px;color:#525a60;font-size:10px;font-weight:850;cursor:pointer}.password-rules{margin:2px 0 14px;color:#687078;font-size:11px;line-height:1.45}.password-error{margin:0 0 12px;color:#b00018;font-size:12px;font-weight:750}.password-change-actions{display:grid;gap:10px}.action-dialog[data-locked="true"] .dialog-head button{display:none}
.login-panel #loginBtn{position:relative;min-height:56px;margin-top:20px;border-radius:14px;background:linear-gradient(135deg,#e3071c,#cf001a);box-shadow:0 13px 27px rgba(213,0,28,.24);font-size:14px;letter-spacing:.01em}.login-panel #loginBtn b{position:absolute;right:19px;top:50%;transform:translateY(-52%);font-size:25px;font-weight:400}.login-panel #loginBtn:hover{box-shadow:0 17px 34px rgba(213,0,28,.31)}
.login-panel .login-note{margin:17px auto 0;max-width:360px;text-align:center;color:#7a8288;font-size:10px;line-height:1.5}

@media(max-width:840px){
  .login-screen{display:block;padding:0;background:#fff}
  .login-shell{width:100%;min-height:100vh;grid-template-columns:1fr;border:0;border-radius:0;box-shadow:none;overflow:visible}
  .login-visual{min-height:330px;padding:25px 24px 62px;background:linear-gradient(145deg,#06151e,#081219 58%,#65000d)}
  .login-visual:before{width:270px;height:270px;right:-135px;bottom:-135px;border-width:52px}
  .login-visual .official-brand{min-height:74px;padding-bottom:15px}.login-visual .brand-tile{width:126px;height:64px}.login-visual .brand-tile .logo-fmd{width:98px;height:55px}.login-visual .texaco-tile{width:64px}.login-visual .texaco-tile .logo-texaco{width:49px;height:49px}.login-visual .brand-divider{height:39px}
  .login-visual-copy{margin:36px 0 0;max-width:580px}.login-visual-copy h2{font-size:38px}.login-visual-copy>p:last-child{margin-top:14px;font-size:13px}.login-benefits{display:none}.login-local-badge{margin-top:auto}
  .login-panel{position:relative;display:block;margin-top:-32px;border-radius:30px 30px 0 0;background:#fff;z-index:2}
  .login-panel .login-card{max-width:580px;margin:0 auto;padding:34px 26px 36px}
  .login-panel .login-card h1 span{font-size:36px}.login-panel .login-card h1 small{font-size:23px}
}

@media(max-width:480px){
  .login-visual{min-height:292px;padding:20px 20px 54px}.login-visual .official-brand{gap:10px}.login-visual .brand-tile{width:112px;height:58px;padding:5px 9px}.login-visual .brand-tile .logo-fmd{width:88px;height:50px}.login-visual .texaco-tile{width:58px}.login-visual .texaco-tile .logo-texaco{width:44px;height:44px}.login-visual .brand-divider{height:36px}
  .login-visual-copy{margin-top:27px}.login-visual-copy h2{font-size:32px}.login-visual-copy>p:last-child{display:none}.login-local-badge{font-size:7px;padding:6px 9px}
  .login-panel{margin-top:-28px;border-radius:27px 27px 0 0}.login-panel .login-card{padding:29px 21px 32px}.login-access-mark{margin-bottom:16px}.login-panel .login-card h1 span{font-size:31px}.login-panel .login-card h1 small{font-size:21px}.login-intro{margin-bottom:18px;font-size:12px}.login-panel .notice.warning{margin-bottom:18px}.login-fields{gap:11px}.login-fields select,.login-fields input{height:52px}.login-panel #loginBtn{min-height:54px;margin-top:17px}
}

/* Acceso — Opción 2: ejecutiva clara */
body[data-login-style="2"] .login-screen{background:radial-gradient(circle at 8% 14%,rgba(213,0,28,.10),transparent 26%),linear-gradient(145deg,#f5f6f7,#e9ecef)}
body[data-login-style="2"] .login-shell{grid-template-columns:minmax(410px,.86fr) minmax(0,1.14fr);grid-template-areas:"panel visual";border:1px solid #dde1e4;background:#fff;box-shadow:0 32px 88px rgba(22,28,32,.20)}
body[data-login-style="2"] .login-panel{grid-area:panel;position:relative;background:#fff}
body[data-login-style="2"] .login-panel:after{content:"";position:absolute;right:0;top:9%;bottom:9%;width:1px;background:#e8eaed}
body[data-login-style="2"] .login-panel .login-card{max-width:440px;padding:46px 40px}
body[data-login-style="2"] .login-visual{grid-area:visual;color:#13171a;background:linear-gradient(145deg,#f9fafb 0%,#f1f3f5 72%,#eceff1 100%)}
body[data-login-style="2"] .login-visual:before{right:-125px;bottom:-155px;width:430px;height:430px;border:76px solid rgba(213,0,28,.08)}
body[data-login-style="2"] .login-visual:after{background:linear-gradient(125deg,transparent 55%,rgba(213,0,28,.07))}
body[data-login-style="2"] .login-visual-glow.glow-one{right:-45px;top:-85px;background:rgba(213,0,28,.10)}
body[data-login-style="2"] .login-visual-glow.glow-two{left:-75px;bottom:65px;background:rgba(4,20,29,.05)}
body[data-login-style="2"] .login-visual .official-brand{border-bottom-color:#dfe3e6}
body[data-login-style="2"] .login-visual .brand-tile{border-color:#e2e5e8;background:#fff;box-shadow:0 10px 25px rgba(4,20,29,.08)}
body[data-login-style="2"] .login-visual .brand-divider{background:#d6dade}
body[data-login-style="2"] .login-eyebrow{color:#333a3f}
body[data-login-style="2"] .login-visual-copy h2{color:#111518}
body[data-login-style="2"] .login-visual-copy h2 span{color:#d5001c}
body[data-login-style="2"] .login-visual-copy>p:last-child{color:#596168}
body[data-login-style="2"] .login-benefits>span{border-color:#dde1e4;background:#fff;box-shadow:0 7px 20px rgba(4,20,29,.05)}
body[data-login-style="2"] .login-benefits b{color:#d5001c}
body[data-login-style="2"] .login-benefits small{color:#394147}
body[data-login-style="2"] .login-local-badge{border-color:#d6dade;background:#10161a;color:#fff}

/* Acceso — Opción 3: portada central */
body[data-login-style="3"] .login-screen{background:radial-gradient(circle at 50% 0,rgba(213,0,28,.28),transparent 34%),linear-gradient(145deg,#05090c,#0b1115 62%,#320007)}
body[data-login-style="3"] .login-shell{width:min(980px,100%);min-height:690px;display:grid;grid-template-columns:1fr;grid-template-rows:350px auto;overflow:visible;border:0;border-radius:30px;background:transparent;box-shadow:none}
body[data-login-style="3"] .login-visual{grid-row:1;padding:30px 46px 95px;border-radius:30px;background:linear-gradient(130deg,#071923,#111217 56%,#7b0011);box-shadow:0 26px 70px rgba(0,0,0,.30)}
body[data-login-style="3"] .login-visual:before{width:360px;height:360px;right:-85px;bottom:-215px;border-color:rgba(255,255,255,.055)}
body[data-login-style="3"] .login-visual .official-brand{min-height:80px;justify-content:center;padding-bottom:14px}
body[data-login-style="3"] .login-visual-copy{margin:24px auto 0;max-width:760px;text-align:center}
body[data-login-style="3"] .login-eyebrow{justify-content:center;margin-bottom:13px}
body[data-login-style="3"] .login-visual-copy h2{font-size:45px;line-height:1.02}
body[data-login-style="3"] .login-visual-copy h2 br{display:none}
body[data-login-style="3"] .login-visual-copy>p:last-child{display:none}
body[data-login-style="3"] .login-benefits{display:none}
body[data-login-style="3"] .login-local-badge{position:absolute;right:28px;top:29px}
body[data-login-style="3"] .login-panel{grid-row:2;position:relative;z-index:3;margin:-82px auto 0;width:min(520px,calc(100% - 36px));display:block;border-radius:27px;background:transparent}
body[data-login-style="3"] .login-panel .login-card{max-width:none;padding:36px 42px 32px;border:1px solid #e7e9eb;border-radius:27px;background:#fff;box-shadow:0 30px 75px rgba(0,0,0,.30)}
body[data-login-style="3"] .login-panel .login-card h1 span{font-size:38px}
body[data-login-style="3"] .login-panel .login-card h1 small{font-size:23px}

@media(max-width:840px){
  body[data-login-style="2"] .login-shell{grid-template-columns:1fr;grid-template-areas:"visual" "panel";min-height:100vh}
  body[data-login-style="2"] .login-visual{min-height:288px;padding-bottom:55px;background:linear-gradient(145deg,#fff,#edf0f2)}
  body[data-login-style="2"] .login-visual-copy{margin-top:28px}body[data-login-style="2"] .login-visual-copy h2{font-size:34px}
  body[data-login-style="2"] .login-panel{margin-top:-27px;border-radius:27px 27px 0 0}body[data-login-style="2"] .login-panel:after{display:none}
  body[data-login-style="2"] .login-panel .login-card{max-width:580px;padding:31px 25px 36px}
  body[data-login-style="3"] .login-screen{padding:0;background:linear-gradient(145deg,#05090c,#260006)}
  body[data-login-style="3"] .login-shell{width:100%;min-height:100vh;grid-template-rows:315px auto;border-radius:0}
  body[data-login-style="3"] .login-visual{min-height:315px;padding:23px 20px 82px;border-radius:0;background:linear-gradient(145deg,#06151e,#101218 60%,#71000f)}
  body[data-login-style="3"] .login-visual .official-brand{justify-content:flex-start}
  body[data-login-style="3"] .login-visual-copy{margin:28px 0 0;text-align:left}
  body[data-login-style="3"] .login-eyebrow{justify-content:flex-start}
  body[data-login-style="3"] .login-visual-copy h2{font-size:34px}
  body[data-login-style="3"] .login-visual-copy h2 br{display:block}
  body[data-login-style="3"] .login-local-badge{right:20px;top:25px}
  body[data-login-style="3"] .login-panel{grid-row:2;width:calc(100% - 28px);margin:-54px auto 20px;border-radius:25px}
  body[data-login-style="3"] .login-panel .login-card{padding:31px 25px 30px;border-radius:25px}
}

@media(max-width:480px){
  body[data-login-style="2"] .login-visual{min-height:255px;padding:18px 20px 47px}
  body[data-login-style="2"] .login-visual-copy{margin-top:22px}body[data-login-style="2"] .login-visual-copy h2{font-size:30px}
  body[data-login-style="2"] .login-panel .login-card{padding:28px 21px 32px}
  body[data-login-style="3"] .login-shell{grid-template-rows:292px auto}
  body[data-login-style="3"] .login-visual{min-height:292px;padding:18px 20px 74px}
  body[data-login-style="3"] .login-visual-copy{margin-top:23px}
  body[data-login-style="3"] .login-visual-copy h2{font-size:30px}
  body[data-login-style="3"] .login-local-badge{display:none}
  body[data-login-style="3"] .login-panel{width:calc(100% - 22px);margin:-47px auto 16px}
  body[data-login-style="3"] .login-panel .login-card{padding:28px 20px 28px}
  body[data-login-style="3"] .login-panel .login-card h1 span{font-size:30px}
  body[data-login-style="3"] .login-panel .login-card h1 small{font-size:20px}
}

/* Acceso — Opción 4: editorial roja */
body[data-login-style="4"] .login-screen{padding:34px;background:linear-gradient(110deg,#d5001c 0 28%,#eceff1 28% 100%)}
body[data-login-style="4"] .login-shell{width:min(1140px,100%);grid-template-columns:390px minmax(0,1fr);border:0;border-radius:8px;background:#f2f3f4;box-shadow:0 34px 90px rgba(17,22,25,.28)}
body[data-login-style="4"] .login-visual{padding:34px 32px 30px;color:#fff;background:#d5001c}
body[data-login-style="4"] .login-visual:before{right:-155px;bottom:-180px;width:390px;height:390px;border:66px solid rgba(0,0,0,.09)}
body[data-login-style="4"] .login-visual:after{inset:auto 0 0;height:34%;background:linear-gradient(160deg,transparent 0 44%,rgba(0,0,0,.12) 44%)}
body[data-login-style="4"] .login-visual-glow{display:none}
body[data-login-style="4"] .login-visual .official-brand{min-height:83px;gap:12px;padding-bottom:18px;border-bottom-color:rgba(255,255,255,.36)}
body[data-login-style="4"] .login-visual .brand-tile{width:132px;height:68px;border:0;border-radius:4px;box-shadow:none}
body[data-login-style="4"] .login-visual .brand-tile .logo-fmd{width:104px;height:58px}
body[data-login-style="4"] .login-visual .texaco-tile{width:68px;padding:6px}
body[data-login-style="4"] .login-visual .texaco-tile .logo-texaco{width:54px;height:54px}
body[data-login-style="4"] .login-visual .brand-divider{height:42px;background:rgba(255,255,255,.38)}
body[data-login-style="4"] .login-visual-copy{margin:auto 0 40px}
body[data-login-style="4"] .login-eyebrow{color:#fff}
body[data-login-style="4"] .login-eyebrow:before{background:#11161a;box-shadow:none}
body[data-login-style="4"] .login-visual-copy h2{font-size:52px;line-height:.92;letter-spacing:-.06em}
body[data-login-style="4"] .login-visual-copy h2 span{color:#11161a}
body[data-login-style="4"] .login-visual-copy>p:last-child{color:#fff;font-size:13px;line-height:1.55}
body[data-login-style="4"] .login-benefits{grid-template-columns:1fr;gap:0;border-top:1px solid rgba(255,255,255,.36)}
body[data-login-style="4"] .login-benefits>span{display:grid;grid-template-columns:33px 1fr;align-items:center;border:0;border-bottom:1px solid rgba(255,255,255,.28);border-radius:0;background:transparent;padding:10px 2px;backdrop-filter:none}
body[data-login-style="4"] .login-benefits b{color:#11161a}
body[data-login-style="4"] .login-benefits small{margin:0;color:#fff}
body[data-login-style="4"] .login-local-badge{border:0;border-radius:2px;background:#11161a;color:#fff}
body[data-login-style="4"] .login-panel{background:#f2f3f4}
body[data-login-style="4"] .login-panel .login-card{max-width:550px;padding:52px 54px;border-left:7px solid #d5001c;background:#fff;box-shadow:0 16px 42px rgba(4,20,29,.10)}
body[data-login-style="4"] .login-access-mark span{width:17px;height:17px;border-radius:0;background:#d5001c}
body[data-login-style="4"] .login-panel .login-card h1 span{font-size:46px}
body[data-login-style="4"] .login-panel .login-card h1 small{color:#d5001c}
body[data-login-style="4"] .login-fields select,body[data-login-style="4"] .login-fields input,body[data-login-style="4"] .login-panel #loginBtn,body[data-login-style="4"] .login-panel .notice.warning{border-radius:4px}

/* Acceso — Opción 5: cristal oscuro */
body[data-login-style="5"] .login-screen{padding:30px;background:radial-gradient(circle at 18% 20%,rgba(213,0,28,.48),transparent 25%),radial-gradient(circle at 85% 78%,rgba(213,0,28,.20),transparent 29%),linear-gradient(135deg,#020609,#0a1116 55%,#160307)}
body[data-login-style="5"] .login-shell{width:min(1080px,100%);grid-template-columns:1fr 1fr;border:1px solid rgba(255,255,255,.16);border-radius:28px;background:rgba(8,14,18,.66);box-shadow:0 34px 100px rgba(0,0,0,.58);backdrop-filter:blur(24px)}
body[data-login-style="5"] .login-visual{padding:40px;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(213,0,28,.07));border-right:1px solid rgba(255,255,255,.12)}
body[data-login-style="5"] .login-visual:before{right:-180px;bottom:-165px;border-color:rgba(213,0,28,.11)}
body[data-login-style="5"] .login-visual:after{background:linear-gradient(125deg,transparent 45%,rgba(255,255,255,.035))}
body[data-login-style="5"] .login-visual .official-brand{border-bottom-color:rgba(255,255,255,.12)}
body[data-login-style="5"] .login-visual .brand-tile{border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.93);box-shadow:0 18px 40px rgba(0,0,0,.23)}
body[data-login-style="5"] .login-visual-copy{margin:auto 0 43px}
body[data-login-style="5"] .login-visual-copy h2{font-size:50px;text-shadow:0 5px 28px rgba(0,0,0,.25)}
body[data-login-style="5"] .login-visual-copy h2 span{color:#ff3047}
body[data-login-style="5"] .login-benefits>span{border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.07);box-shadow:inset 0 1px rgba(255,255,255,.06)}
body[data-login-style="5"] .login-local-badge{background:rgba(0,0,0,.22)}
body[data-login-style="5"] .login-panel{background:rgba(255,255,255,.035);backdrop-filter:blur(20px)}
body[data-login-style="5"] .login-panel .login-card{max-width:490px;margin:20px;padding:38px 36px;border:1px solid rgba(255,255,255,.13);border-radius:22px;background:rgba(255,255,255,.075);box-shadow:0 24px 60px rgba(0,0,0,.24);color:#fff}
body[data-login-style="5"] .login-access-mark b{color:#e6eaec}
body[data-login-style="5"] .login-panel .login-card h1 span{color:#fff}
body[data-login-style="5"] .login-panel .login-card h1 small{color:#aeb8be}
body[data-login-style="5"] .login-intro,body[data-login-style="5"] .login-panel .login-note{color:#aeb8be}
body[data-login-style="5"] .login-panel .notice.warning{border-color:rgba(255,255,255,.14);background:rgba(0,0,0,.18);color:#fff}
body[data-login-style="5"] .login-panel .notice.warning small{color:#aeb8be}
body[data-login-style="5"] .login-fields label{color:#fff}
body[data-login-style="5"] .login-fields select,body[data-login-style="5"] .login-fields input{border-color:rgba(255,255,255,.19);background-color:rgba(255,255,255,.96);color:#151a1d;box-shadow:0 8px 24px rgba(0,0,0,.18)}
body[data-login-style="5"] .login-panel #loginBtn{box-shadow:0 15px 34px rgba(213,0,28,.38)}

/* Acceso — Opción 6: modular ejecutivo */
body[data-login-style="6"] .login-screen{padding:30px;background:linear-gradient(135deg,#e7eaed 0 50%,#dce0e3 50%)}
body[data-login-style="6"] .login-shell{width:min(1160px,100%);grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);border:0;border-radius:24px;background:#fff;box-shadow:0 30px 85px rgba(12,18,22,.24)}
body[data-login-style="6"] .login-visual{padding:34px 38px;color:#11171b;background:linear-gradient(90deg,transparent 49px,rgba(4,20,29,.035) 50px),linear-gradient(transparent 49px,rgba(4,20,29,.035) 50px),#fff;background-size:50px 50px}
body[data-login-style="6"] .login-visual:before{right:-110px;bottom:-120px;width:330px;height:330px;border:58px solid rgba(213,0,28,.08)}
body[data-login-style="6"] .login-visual:after{inset:0 auto 0 0;width:8px;background:#d5001c}
body[data-login-style="6"] .login-visual .official-brand{border-bottom-color:#dfe3e6}
body[data-login-style="6"] .login-visual .brand-tile{border-color:#e0e4e7;border-radius:9px;background:#fff;box-shadow:0 10px 28px rgba(4,20,29,.08)}
body[data-login-style="6"] .login-visual .brand-divider{background:#d8dde0}
body[data-login-style="6"] .login-visual-copy{margin:auto 0 38px}
body[data-login-style="6"] .login-eyebrow{color:#4e565c}
body[data-login-style="6"] .login-visual-copy h2{color:#11171b;font-size:52px}
body[data-login-style="6"] .login-visual-copy h2 span{display:inline-block;background:#d5001c;color:#fff;padding:2px 8px 7px}
body[data-login-style="6"] .login-visual-copy>p:last-child{color:#596168}
body[data-login-style="6"] .login-benefits{gap:8px}
body[data-login-style="6"] .login-benefits>span{min-height:70px;border:0;border-radius:7px;background:#10171b;padding:13px;box-shadow:0 9px 24px rgba(4,20,29,.12)}
body[data-login-style="6"] .login-benefits>span:nth-child(2){background:#d5001c}
body[data-login-style="6"] .login-benefits>span:nth-child(3){background:#e7eaed}
body[data-login-style="6"] .login-benefits b{color:#ff4052}
body[data-login-style="6"] .login-benefits>span:nth-child(2) b{color:#11171b}
body[data-login-style="6"] .login-benefits>span:nth-child(3) b{color:#d5001c}
body[data-login-style="6"] .login-benefits>span:nth-child(3) small{color:#22292d}
body[data-login-style="6"] .login-local-badge{border:0;border-radius:5px;background:#d5001c;color:#fff}
body[data-login-style="6"] .login-panel{background:#0a1217}
body[data-login-style="6"] .login-panel .login-card{max-width:495px;padding:46px 43px;color:#fff}
body[data-login-style="6"] .login-access-mark b{color:#b9c2c7}
body[data-login-style="6"] .login-panel .login-card h1 span{color:#fff}
body[data-login-style="6"] .login-panel .login-card h1 small{color:#ff4354}
body[data-login-style="6"] .login-intro,body[data-login-style="6"] .login-panel .login-note{color:#a8b3b9}
body[data-login-style="6"] .login-panel .notice.warning{border-color:#26333b;background:#101c23;color:#fff}
body[data-login-style="6"] .login-panel .notice.warning small{color:#9eabb2}
body[data-login-style="6"] .login-fields label{color:#fff}
body[data-login-style="6"] .login-fields select,body[data-login-style="6"] .login-fields input{border-color:#334049;border-radius:7px;background-color:#fff;color:#11171b}
body[data-login-style="6"] .login-panel #loginBtn{border-radius:7px}

@media(max-width:840px){
  body[data-login-style="4"] .login-screen{padding:0;background:#d5001c}
  body[data-login-style="4"] .login-shell{grid-template-columns:1fr;min-height:100vh;border-radius:0}
  body[data-login-style="4"] .login-visual{min-height:275px;padding:22px 23px 55px;background:#d5001c}
  body[data-login-style="4"] .login-visual-copy{margin:25px 0 0}body[data-login-style="4"] .login-visual-copy h2{font-size:36px}
  body[data-login-style="4"] .login-benefits{display:none}
  body[data-login-style="4"] .login-panel{margin-top:-28px;border-radius:0;background:#f2f3f4}
  body[data-login-style="4"] .login-panel .login-card{max-width:580px;margin:0 auto;padding:33px 28px 36px;border-left-width:5px}

  body[data-login-style="5"] .login-screen{display:block;padding:0;background:linear-gradient(145deg,#020609,#1d0207)}
  body[data-login-style="5"] .login-shell{width:100%;min-height:100vh;grid-template-columns:1fr;border:0;border-radius:0;overflow:visible}
  body[data-login-style="5"] .login-visual{min-height:280px;padding:22px 23px 58px;border-right:0;border-bottom:1px solid rgba(255,255,255,.11)}
  body[data-login-style="5"] .login-visual-copy{margin:27px 0 0}body[data-login-style="5"] .login-visual-copy h2{font-size:35px}
  body[data-login-style="5"] .login-benefits{display:none}
  body[data-login-style="5"] .login-panel{display:block;margin-top:-31px;border-radius:28px 28px 0 0;background:rgba(6,11,15,.92)}
  body[data-login-style="5"] .login-panel .login-card{max-width:580px;margin:0 auto;padding:32px 25px 36px;border:0;border-radius:28px;background:transparent;box-shadow:none}

  body[data-login-style="6"] .login-screen{display:block;padding:0;background:#e7eaed}
  body[data-login-style="6"] .login-shell{width:100%;min-height:100vh;grid-template-columns:1fr;border-radius:0;overflow:visible}
  body[data-login-style="6"] .login-visual{min-height:290px;padding:22px 23px 58px}
  body[data-login-style="6"] .login-visual-copy{margin:28px 0 0}body[data-login-style="6"] .login-visual-copy h2{font-size:35px}
  body[data-login-style="6"] .login-benefits{display:none}
  body[data-login-style="6"] .login-panel{display:block;margin-top:-30px;border-radius:27px 27px 0 0;background:#0a1217}
  body[data-login-style="6"] .login-panel .login-card{max-width:580px;margin:0 auto;padding:33px 26px 36px}
}

@media(max-width:480px){
  body[data-login-style="4"] .login-visual,body[data-login-style="5"] .login-visual,body[data-login-style="6"] .login-visual{min-height:250px;padding:18px 19px 48px}
  body[data-login-style="4"] .login-visual-copy,body[data-login-style="5"] .login-visual-copy,body[data-login-style="6"] .login-visual-copy{margin-top:21px}
  body[data-login-style="4"] .login-visual-copy h2,body[data-login-style="5"] .login-visual-copy h2,body[data-login-style="6"] .login-visual-copy h2{font-size:30px}
  body[data-login-style="4"] .login-panel .login-card,body[data-login-style="5"] .login-panel .login-card,body[data-login-style="6"] .login-panel .login-card{padding:28px 20px 31px}
}

/* Acceso principal — inspirado en tarjeta móvil envolvente */
body[data-login-style="7"] .login-screen{padding:28px;background:radial-gradient(circle at 14% 18%,rgba(213,0,28,.16),transparent 24%),radial-gradient(circle at 87% 83%,rgba(5,16,23,.10),transparent 25%),#f2efeb}
body[data-login-style="7"] .login-shell{width:min(820px,100%);min-height:min(760px,calc(100vh - 56px));display:grid;grid-template-columns:1fr;grid-template-rows:355px auto;overflow:hidden;border:9px solid #11171a;border-radius:38px;background:#f7f8f9;box-shadow:0 34px 90px rgba(12,18,22,.28)}
body[data-login-style="7"] .login-visual{grid-row:1;align-items:center;padding:31px 42px 112px;color:#fff;text-align:center;background:radial-gradient(circle at 84% 14%,rgba(255,60,78,.20),transparent 30%),linear-gradient(135deg,#05080a 0%,#0b0e11 35%,#310008 58%,#830012 79%,#d5001c 100%)}
body[data-login-style="7"][data-login-variant="red"] .login-visual{background:radial-gradient(circle at 84% 14%,rgba(255,255,255,.16),transparent 28%),linear-gradient(145deg,#e3071c,#d5001c 62%,#aa0016)}
body[data-login-style="7"][data-login-variant="black"] .login-visual{background:radial-gradient(circle at 84% 14%,rgba(213,0,28,.18),transparent 28%),linear-gradient(145deg,#151b1f,#090d10 58%,#020405)}
body[data-login-style="7"] .login-visual:before{width:370px;height:370px;right:-145px;bottom:-245px;border:72px solid rgba(0,0,0,.10)}
body[data-login-style="7"] .login-visual:after{inset:auto -8% -105px;width:116%;height:190px;border-radius:50% 50% 0 0;background:#f7f8f9;transform:rotate(-4deg)}
body[data-login-style="7"] .login-visual-glow.glow-one{width:230px;height:230px;right:-90px;top:-95px;background:rgba(255,255,255,.10)}
body[data-login-style="7"] .login-visual-glow.glow-two{width:180px;height:180px;left:-100px;bottom:40px;background:rgba(0,0,0,.07)}
body[data-login-style="7"] .login-visual .official-brand{min-height:auto;justify-content:center;padding:0;border:0}
body[data-login-style="7"] .login-visual .brand-tile{width:172px;height:91px;padding:7px 15px;border:0;border-radius:17px;background:#fff;box-shadow:0 15px 35px rgba(69,0,9,.22)}
body[data-login-style="7"] .login-visual .brand-tile .logo-fmd{width:137px;height:77px}
body[data-login-style="7"] .login-visual-copy{position:relative;z-index:2;margin:30px auto 0;max-width:650px}
body[data-login-style="7"] .login-visual-copy h2{font-size:43px;line-height:1;letter-spacing:-.045em;color:#fff}
body[data-login-style="7"] .login-visual-copy h2 span{color:#fff}
body[data-login-style="7"] .login-visual-copy>p:last-child{display:none}
body[data-login-style="7"] .login-benefits{display:none}
body[data-login-style="7"] .login-local-badge{position:absolute;z-index:3;right:24px;top:24px;border-color:rgba(255,255,255,.28);background:rgba(11,17,21,.22);color:#fff}
body[data-login-style="7"] .login-panel{grid-row:2;position:relative;z-index:4;display:block;margin:-96px auto 30px;width:min(560px,calc(100% - 42px));border-radius:30px;background:transparent}
body[data-login-style="7"] .login-panel .login-card{max-width:none;padding:34px 41px 31px;border:1px solid #e5e8ea;border-radius:30px;background:#fff;box-shadow:0 25px 60px rgba(12,18,22,.18);text-align:left}
body[data-login-style="7"] .login-panel .login-card h1{text-align:center;margin-bottom:10px}
body[data-login-style="7"] .login-panel .login-card h1 span{font-size:35px;color:#11171a}
body[data-login-style="7"] .login-panel .login-card h1 small{margin-top:5px;font-size:17px;color:#596168}
body[data-login-style="7"] .login-intro{margin-bottom:17px;text-align:center;font-size:11px}
body[data-login-style="7"] .login-panel .notice.warning{margin-bottom:15px;border:0;border-radius:14px;background:#f3f5f6;padding:9px 11px}
body[data-login-style="7"] .login-fields{gap:11px}
body[data-login-style="7"] .login-fields label{font-size:10px}
body[data-login-style="7"] .login-fields select,body[data-login-style="7"] .login-fields input{height:50px;border:0;border-radius:999px;background-color:#f1f3f4;padding-left:18px;box-shadow:inset 0 0 0 1px #e7eaec}
body[data-login-style="7"] .password-field button{border-radius:999px;background:#fff}
body[data-login-style="7"] .login-panel #loginBtn{min-height:52px;margin-top:16px;border-radius:999px}
body[data-login-style="7"] .login-panel .login-note{margin-top:13px;font-size:9px}

@media(max-width:840px){
  body[data-login-style="7"] .login-screen{display:block;padding:0;background:#f7f8f9}
  body[data-login-style="7"] .login-shell{width:100%;min-height:100vh;grid-template-rows:340px auto;border:0;border-radius:0;box-shadow:none;overflow:visible}
  body[data-login-style="7"] .login-visual{min-height:340px;padding:25px 24px 108px}
  body[data-login-style="7"] .login-visual:after{bottom:-106px}
  body[data-login-style="7"] .login-visual-copy{margin-top:22px}
  body[data-login-style="7"] .login-visual-copy h2{font-size:38px}
  body[data-login-style="7"] .login-panel{width:min(560px,calc(100% - 30px));margin:-82px auto 24px;border-radius:28px}
  body[data-login-style="7"] .login-panel .login-card{padding:31px 27px 30px;border-radius:28px}
}

@media(max-width:480px){
  body[data-login-style="7"] .login-shell{grid-template-rows:315px auto}
  body[data-login-style="7"] .login-visual{min-height:315px;padding:20px 18px 95px}
  body[data-login-style="7"] .login-visual .brand-tile{width:143px;height:76px;border-radius:14px}
  body[data-login-style="7"] .login-visual .brand-tile .logo-fmd{width:114px;height:64px}
  body[data-login-style="7"] .login-visual-copy{margin-top:18px}
  body[data-login-style="7"] .login-visual-copy h2{font-size:31px}
  body[data-login-style="7"] .login-local-badge{right:14px;top:14px;font-size:6px}
  body[data-login-style="7"] .login-panel{width:calc(100% - 24px);margin:-70px auto 18px}
  body[data-login-style="7"] .login-panel .login-card{padding:28px 20px 27px}
  body[data-login-style="7"] .login-panel .login-card h1 span{font-size:30px}
}

/* Referencia 1 — Opción B: tarjeta diagonal */
body[data-login-style="8"] .login-screen{padding:30px;background:linear-gradient(135deg,#f2eee9,#e5e7e8)}
body[data-login-style="8"] .login-shell{width:min(1080px,100%);min-height:min(710px,calc(100vh - 60px));grid-template-columns:minmax(360px,.9fr) minmax(460px,1.1fr);border:8px solid #11171a;border-radius:35px;background:#d5001c;box-shadow:0 32px 90px rgba(12,18,22,.26)}
body[data-login-style="8"] .login-visual{padding:42px 38px 36px;align-items:center;text-align:center;background:radial-gradient(circle at 5% 90%,rgba(0,0,0,.12),transparent 34%),linear-gradient(145deg,#e3071c,#bc0018)}
body[data-login-style="8"] .login-visual:before{right:-165px;bottom:-170px;border-color:rgba(255,255,255,.08)}
body[data-login-style="8"] .login-visual:after{inset:auto -75px -58px auto;width:230px;height:310px;background:#fff;transform:rotate(14deg);border-radius:40px}
body[data-login-style="8"] .login-visual .official-brand{justify-content:center;padding:0;border:0}
body[data-login-style="8"] .login-visual .brand-tile{width:170px;height:91px;border:0;border-radius:17px;background:#fff;box-shadow:0 16px 35px rgba(80,0,10,.22)}
body[data-login-style="8"] .login-visual .brand-tile .logo-fmd{width:137px;height:77px}
body[data-login-style="8"] .login-visual-copy{z-index:2;margin:auto 0;max-width:390px}
body[data-login-style="8"] .login-visual-copy h2{font-size:43px;line-height:1.04;color:#fff}
body[data-login-style="8"] .login-visual-copy h2 span{color:#fff}
body[data-login-style="8"] .login-visual-copy>p:last-child{display:none}
body[data-login-style="8"] .login-benefits{display:none}
body[data-login-style="8"] .login-local-badge{z-index:2;border-color:rgba(255,255,255,.28);background:#11171a;color:#fff}
body[data-login-style="8"] .login-panel{position:relative;z-index:3;background:transparent}
body[data-login-style="8"] .login-panel .login-card{max-width:500px;margin:28px;padding:43px 39px 35px;border-radius:30px;background:#fff;box-shadow:0 26px 60px rgba(65,0,9,.24)}
body[data-login-style="8"] .login-panel .login-card h1{text-align:center}
body[data-login-style="8"] .login-panel .login-card h1 span{font-size:36px}
body[data-login-style="8"] .login-panel .login-card h1 small{font-size:18px;color:#d5001c}
body[data-login-style="8"] .login-intro{text-align:center}
body[data-login-style="8"] .login-panel .notice.warning{border:0;background:#f3f4f5}
body[data-login-style="8"] .login-fields select,body[data-login-style="8"] .login-fields input{height:52px;border:0;border-radius:999px;background-color:#f1f3f4;box-shadow:inset 0 0 0 1px #e5e8ea}
body[data-login-style="8"] .login-panel #loginBtn{border-radius:999px}

/* Referencia 2 — Opción A: formato móvil central */
body[data-login-style="9"] .login-screen{padding:24px;background:radial-gradient(circle at 50% 15%,rgba(213,0,28,.18),transparent 30%),#efefed}
body[data-login-style="9"] .login-shell{width:min(540px,100%);min-height:min(790px,calc(100vh - 48px));display:grid;grid-template-columns:1fr;grid-template-rows:330px auto;border:10px solid #11171a;border-radius:43px;background:linear-gradient(160deg,#e3071c,#d5001c);box-shadow:0 30px 80px rgba(12,18,22,.30)}
body[data-login-style="9"] .login-visual{grid-row:1;align-items:center;padding:34px 25px 65px;text-align:center;background:radial-gradient(circle at 50% 100%,rgba(255,255,255,.14),transparent 38%),linear-gradient(145deg,#e3071c,#c60019)}
body[data-login-style="9"] .login-visual:before{width:250px;height:250px;right:-140px;bottom:-180px;border:48px solid rgba(0,0,0,.10)}
body[data-login-style="9"] .login-visual:after{display:none}
body[data-login-style="9"] .login-visual .official-brand{justify-content:center;padding:0;border:0}
body[data-login-style="9"] .login-visual .brand-tile{width:155px;height:82px;border:0;border-radius:50%;background:#fff;box-shadow:0 15px 35px rgba(65,0,9,.22)}
body[data-login-style="9"] .login-visual .brand-tile .logo-fmd{width:120px;height:68px}
body[data-login-style="9"] .login-visual-copy{margin:26px auto 0}
body[data-login-style="9"] .login-visual-copy h2{font-size:32px;line-height:1.05;color:#fff}
body[data-login-style="9"] .login-visual-copy h2 span{color:#fff}
body[data-login-style="9"] .login-visual-copy>p:last-child,body[data-login-style="9"] .login-benefits{display:none}
body[data-login-style="9"] .login-local-badge{position:absolute;right:20px;top:20px;background:rgba(0,0,0,.22);color:#fff}
body[data-login-style="9"] .login-panel{grid-row:2;position:relative;z-index:3;display:block;margin:-54px 18px 22px;border-radius:31px;background:transparent}
body[data-login-style="9"] .login-panel .login-card{max-width:none;padding:35px 31px 30px;border-radius:31px;background:#fff;box-shadow:0 25px 55px rgba(65,0,9,.26)}
body[data-login-style="9"] .login-panel .login-card h1{text-align:center}
body[data-login-style="9"] .login-panel .login-card h1 span{font-size:34px}
body[data-login-style="9"] .login-panel .login-card h1 small{font-size:17px;color:#d5001c}
body[data-login-style="9"] .login-intro{text-align:center}
body[data-login-style="9"] .login-panel .notice.warning{border:0;border-radius:15px;background:#f3f4f5}
body[data-login-style="9"] .login-fields select,body[data-login-style="9"] .login-fields input{height:52px;border:0;border-radius:999px;background-color:#f1f3f4;box-shadow:inset 0 0 0 1px #e5e8ea}
body[data-login-style="9"] .login-panel #loginBtn{border-radius:999px}

/* Referencia 2 — Opción B: panel flotante lateral */
body[data-login-style="10"] .login-screen{padding:30px;background:linear-gradient(130deg,#e3071c 0 46%,#f0f1f2 46%)}
body[data-login-style="10"] .login-shell{width:min(1090px,100%);min-height:min(700px,calc(100vh - 60px));grid-template-columns:minmax(450px,1fr) minmax(0,1fr);grid-template-areas:"panel visual";border:8px solid #11171a;border-radius:36px;background:#fff;box-shadow:0 32px 90px rgba(12,18,22,.30)}
body[data-login-style="10"] .login-visual{grid-area:visual;align-items:center;padding:40px;text-align:center;background:radial-gradient(circle at 90% 90%,rgba(0,0,0,.12),transparent 35%),linear-gradient(145deg,#e3071c,#c10018)}
body[data-login-style="10"] .login-visual:before{width:330px;height:330px;right:-150px;bottom:-150px;border-color:rgba(255,255,255,.09)}
body[data-login-style="10"] .login-visual .official-brand{justify-content:center;padding:0;border:0}
body[data-login-style="10"] .login-visual .brand-tile{width:178px;height:96px;border:0;border-radius:22px;background:#fff;box-shadow:0 18px 42px rgba(60,0,8,.25)}
body[data-login-style="10"] .login-visual .brand-tile .logo-fmd{width:142px;height:80px}
body[data-login-style="10"] .login-visual-copy{margin:auto 0}
body[data-login-style="10"] .login-visual-copy h2{font-size:45px;line-height:1.04;color:#fff}
body[data-login-style="10"] .login-visual-copy h2 span{color:#fff}
body[data-login-style="10"] .login-visual-copy>p:last-child{max-width:360px;margin:20px auto 0;color:#fff}
body[data-login-style="10"] .login-benefits{display:none}
body[data-login-style="10"] .login-local-badge{background:#11171a;color:#fff}
body[data-login-style="10"] .login-panel{grid-area:panel;position:relative;background:#fff}
body[data-login-style="10"] .login-panel:before{content:"";position:absolute;right:-64px;top:12%;width:130px;height:76%;border-radius:50%;background:#fff;z-index:1}
body[data-login-style="10"] .login-panel .login-card{position:relative;z-index:2;max-width:470px;padding:45px 39px}
body[data-login-style="10"] .login-panel .login-card h1{text-align:center}
body[data-login-style="10"] .login-panel .login-card h1 span{font-size:36px}
body[data-login-style="10"] .login-panel .login-card h1 small{font-size:18px;color:#d5001c}
body[data-login-style="10"] .login-intro{text-align:center}
body[data-login-style="10"] .login-panel .notice.warning{border:0;background:#f3f4f5}
body[data-login-style="10"] .login-fields select,body[data-login-style="10"] .login-fields input{height:52px;border:0;border-radius:999px;background-color:#f1f3f4;box-shadow:inset 0 0 0 1px #e5e8ea}
body[data-login-style="10"] .login-panel #loginBtn{border-radius:999px}

@media(max-width:840px){
  body[data-login-style="8"] .login-screen,body[data-login-style="9"] .login-screen,body[data-login-style="10"] .login-screen{display:block;padding:0;background:#f7f8f9}
  body[data-login-style="8"] .login-shell,body[data-login-style="10"] .login-shell{width:100%;min-height:100vh;grid-template-columns:1fr;grid-template-areas:"visual" "panel";border:0;border-radius:0;overflow:visible;box-shadow:none}
  body[data-login-style="8"] .login-visual,body[data-login-style="10"] .login-visual{grid-area:visual;min-height:315px;padding:22px 22px 74px}
  body[data-login-style="8"] .login-visual:after{inset:auto -40px -65px auto;width:180px;height:180px}
  body[data-login-style="8"] .login-visual-copy,body[data-login-style="10"] .login-visual-copy{margin:26px 0 0}
  body[data-login-style="8"] .login-visual-copy h2,body[data-login-style="10"] .login-visual-copy h2{font-size:34px}
  body[data-login-style="8"] .login-panel,body[data-login-style="10"] .login-panel{grid-area:panel;display:block;width:calc(100% - 28px);margin:-58px auto 20px;border-radius:29px;background:transparent}
  body[data-login-style="8"] .login-panel .login-card,body[data-login-style="10"] .login-panel .login-card{max-width:580px;margin:0 auto;padding:31px 25px 30px;border-radius:29px;background:#fff;box-shadow:0 24px 55px rgba(12,18,22,.18)}
  body[data-login-style="10"] .login-panel:before{display:none}
  body[data-login-style="9"] .login-shell{width:100%;min-height:100vh;grid-template-rows:315px auto;border:0;border-radius:0;overflow:visible;box-shadow:none}
  body[data-login-style="9"] .login-visual{min-height:315px;padding:22px 22px 72px}
  body[data-login-style="9"] .login-panel{width:calc(100% - 28px);margin:-56px auto 20px}
}

@media(max-width:480px){
  body[data-login-style="8"] .login-visual,body[data-login-style="9"] .login-visual,body[data-login-style="10"] .login-visual{min-height:285px;padding:18px 18px 66px}
  body[data-login-style="8"] .login-visual .brand-tile,body[data-login-style="9"] .login-visual .brand-tile,body[data-login-style="10"] .login-visual .brand-tile{width:140px;height:75px;border-radius:15px}
  body[data-login-style="8"] .login-visual .brand-tile .logo-fmd,body[data-login-style="9"] .login-visual .brand-tile .logo-fmd,body[data-login-style="10"] .login-visual .brand-tile .logo-fmd{width:112px;height:63px}
  body[data-login-style="8"] .login-visual-copy,body[data-login-style="9"] .login-visual-copy,body[data-login-style="10"] .login-visual-copy{margin-top:19px}
  body[data-login-style="8"] .login-visual-copy h2,body[data-login-style="9"] .login-visual-copy h2,body[data-login-style="10"] .login-visual-copy h2{font-size:28px}
  body[data-login-style="8"] .login-panel,body[data-login-style="9"] .login-panel,body[data-login-style="10"] .login-panel{width:calc(100% - 22px);margin-top:-50px}
  body[data-login-style="8"] .login-panel .login-card,body[data-login-style="9"] .login-panel .login-card,body[data-login-style="10"] .login-panel .login-card{padding:28px 20px 27px}
}

/* Ajustes PWA y navegación móvil */
body.preserving-view{overflow-anchor:none}
body.preserving-view #viewOutlet,body.preserving-view #viewOutlet *{overflow-anchor:none}
.install-app-btn{width:100%;min-height:44px;margin-top:11px;border:1px solid #d9dde0;border-radius:999px;background:#fff;color:#11171a;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;font-weight:850;letter-spacing:.01em;box-shadow:0 5px 16px rgba(4,20,29,.05)}
.install-app-btn span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fde8eb;color:#d5001c;font-size:16px}.install-app-btn:hover{border-color:#d5001c;background:#fff8f9}
.install-help{padding:8px 2px}.install-help b{font-size:18px}.install-help p{margin:10px 0 0;color:#596168;line-height:1.6}
:root{--sidebar:196px}
.side-nav{padding-left:8px;padding-right:7px}.nav-link{gap:8px;padding-left:9px;padding-right:8px;font-size:12.5px}.nav-link span{width:18px}.nav-section{padding-left:9px;padding-right:7px;font-size:8px}.sidebar-brand{padding-left:12px;padding-right:12px}.sidebar-fmd{width:126px}
body[data-login-style="7"] .login-visual-copy h2{font-size:36px;line-height:1.04;letter-spacing:-.035em}

@media(max-width:760px){
  .sidebar{width:min(238px,76vw)}
  .mobile-nav{padding-left:3px;padding-right:3px}
  .mobile-nav button{flex:1 1 20%;min-width:0;padding-left:2px;padding-right:2px}
  body[data-login-style="7"] .login-visual-copy h2{font-size:32px}
}

@media(max-width:480px){
  body[data-login-style="7"] .login-visual-copy h2{font-size:27px}
  body[data-login-style="7"] .login-panel .login-card{padding-bottom:25px}
  .install-app-btn{min-height:42px;margin-top:9px}
}
