/* MEGA-COBROS PRO 6.0 · Tema profesional mixto: carbón, ámbar, lavanda, azul y petróleo. */
:root{--bg:#f5f6fa;--paper:#fff;--ink:#222e40;--sub:#5e7080;--muted:#8997a5;--line:#e3e8ef;--line2:#d6e0e8;--primary:#295a6b;--primary-dark:#203e4f;--forest:#111b27;--forest2:#263445;--mint:#e8f3f7;--shadow:0 14px 42px rgba(22,38,63,.055);--shadow-strong:0 25px 65px rgba(20,34,54,.15)}
body{color:var(--ink);background:#f5f6fa;font-family:'DM Sans','Segoe UI',sans-serif}.layout{background:#f5f6fa}
.sidebar{background:#121b26;box-shadow:12px 0 34px rgba(13,26,43,.12);border-radius:0!important}.sidebar .brand{border-bottom:1px solid rgba(202,223,235,.08);padding-bottom:15px;height:68px}.brand-text small{color:#9bafbf}.brand .brand-word{font-family:'Autonomous','DM Sans',sans-serif;font-weight:400;letter-spacing:.025em;font-size:13px;max-width:157px}.nav-caption{color:#889baa}.nav-link{color:#b5c1cc;border-radius:11px}.nav-link:hover{background:#283849;color:#fff}.nav-link.is-active{background:#eef4f8;color:#192c39;box-shadow:none}.sidebar-foot{border-top:1px solid #344352}.sidebar-account{background:rgba(255,255,255,.03)}.account-initial{background:#384f62;color:#fff}.logout button{color:#a5b8c6}
.main{background:#f5f6fa}.topbar{background:#fff;border-bottom:1px solid #e7ebf1}.online-chip{background:#eaf4f8!important;color:#417083!important}.content{padding-top:27px}.eyebrow,.overline{color:#697d8f!important;letter-spacing:.1em;font-size:9px;font-weight:800}.page-intro{margin-bottom:24px}.page-intro h1{font-family:'Autonomous',Manrope,'Segoe UI',sans-serif!important;font-weight:400;font-size:21px;letter-spacing:0;color:#25394b;margin:6px 0 9px}.page-intro p{color:#8695a5;font-size:11px}
/* Tarjeta de portada oscura con resumen operativo no financiero. */
.hero.hero-six{background:radial-gradient(circle at 110% -40%,rgba(113,125,180,.3),transparent 45%),linear-gradient(115deg,#171f2b 0%,#283443 67%,#344454 100%);border:1px solid #283747;min-height:244px;border-radius:19px;box-shadow:0 17px 37px rgba(29,43,61,.1);padding:31px 37px;display:flex;align-items:center;justify-content:space-between;gap:23px}.hero.hero-six:after{display:none}.hero-six .hero-tag{color:#e4b28c;font-size:9px;letter-spacing:.15em}.hero-six .hero-live{background:#d9a17a;box-shadow:0 0 0 3px rgba(220,164,128,.14)}.hero-six h2{font-family:'DM Sans',Manrope,sans-serif!important;font-size:clamp(26px,2.7vw,37px);line-height:1.22;font-weight:800;letter-spacing:-.055em;color:#fff;margin:13px 0}.hero-six h2 em{font-style:normal;color:#e9ab83}.hero-six p{color:#b9c8d7;font-size:11px;line-height:1.8;max-width:415px;margin-bottom:20px}.hero-six .hero-actions{gap:11px}.hero-six .btn-ink{background:#fff!important;color:#1e3241;border:0;box-shadow:0 9px 19px rgba(0,0,0,.13)}.hero-six .btn-ink:hover{background:#ecf2f7!important}.hero-six .btn-hero-secondary{background:transparent;color:#f4f7f9;border-color:#677685}.hero-six .btn-hero-secondary:hover{background:#364758}.hero-six .hero-side{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);border-radius:15px;padding:21px;max-width:315px;min-width:282px;color:#fff}.hero-side-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.hero-side-head span{font-size:10px;color:#cad4df;letter-spacing:.1em;font-weight:800}.hero-side-head strong{font:800 30px Manrope,sans-serif}.hero-segments{display:flex;align-items:stretch;gap:7px;margin:12px 0}.hero-segments .segment{flex:1;padding:11px 10px;border-radius:10px;display:flex;flex-direction:column;gap:5px}.segment span{font-size:10px;opacity:.86}.segment strong{font:800 20px Manrope,sans-serif}.segment-a{background:#46677a}.segment-b{background:#8f759b}.segment-c{background:#a67155}.hero-side small{font-size:9px;color:#a5bac9}.six-notice{display:inline-grid;place-items:center;border-radius:50%;height:17px;min-width:17px;background:#d67f67;color:#fff;font-size:9px;font-weight:900}
/* Métricas diferenciadas por color, sin convertir ni mezclar monedas. */
.metrics{gap:13px}.metric{border:1px solid #e1e7ee;border-radius:16px;padding:18px;background:white;box-shadow:0 8px 28px rgba(21,43,62,.045);border-left:3px solid #5b89ab}.metric:nth-child(2){border-left-color:#9380cf}.metric:nth-child(3){border-left-color:#e1a46c}.metric:nth-child(4){border-left-color:#cb7782}.metric-icon,.metric-icon--mint,.metric-icon--violet,.metric-icon--gold,.metric-icon--rose{border-radius:12px!important}.metric:nth-child(1) .metric-icon{background:#eaf2fa!important;color:#497da4!important}.metric:nth-child(2) .metric-icon{background:#efecfb!important;color:#8570c0!important}.metric:nth-child(3) .metric-icon{background:#fff4e8!important;color:#c58b4d!important}.metric:nth-child(4) .metric-icon{background:#fff0f1!important;color:#c36e7e!important}.metric p{color:#7b8e9d;font-size:11px;margin-top:11px}.metric strong{color:#1c2c3a;font-size:29px}.metric small{color:#9aa8b4}.metric-deco{color:#afbbc5}
.panel,.portfolio-strip,.renewal-panel,.metric{border-color:#e1e7ef!important;box-shadow:0 9px 30px rgba(24,42,60,.045)!important}.panel{background:#fff;border-radius:17px}.panel-heading h3,.renewal-heading h3,.settings-title h3,.modal-head h2{font-family:'Autonomous',Manrope,'Segoe UI',sans-serif!important;letter-spacing:0;font-weight:400;font-size:15px;line-height:1.5;color:#26384b}.panel-heading p,.renewal-heading p{color:#8998a6}.text-link,.row-link{color:#456b82}.text-link:hover,.row-link:hover{color:#182c39}.portfolio-strip.six-portfolio{background:#fff;border:1px solid #dfe7ee;border-radius:16px;padding:23px}.portfolio-strip h3{color:#243545;font-family:'Autonomous',Manrope,sans-serif!important;font-weight:400;font-size:15px}.portfolio-strip p{font-size:10px;color:#91a1ad}.portfolio-chip{border-radius:10px;background:#f0f3f8;border-color:#e3e8f0}.portfolio-chip:nth-child(3n+1){background:#f0f3fb}.portfolio-chip:nth-child(3n+2){background:#fff2e9}.portfolio-chip:nth-child(3n+3){background:#f0eef7}.portfolio-chip span{color:#51657a}.portfolio-chip strong{color:#284f67}.renewal-panel{background:#fff;border-radius:16px;padding:22px}.renewal-item{background:#f8fafc;border:1px solid #e8edf2}.renewal-item:nth-child(2) .renewal-day{color:#a67351}.renewal-item:nth-child(3) .renewal-day{color:#8275ba}.renewal-day{background:#fff}.data-table th{background:#f8fafc;color:#8b98a8}.data-table td{border-top-color:#edf0f4;color:#5f7080}.data-table td b,.row-title{color:#293b49}.income-panel{background:linear-gradient(135deg,#243342,#172630)!important;border:0!important;color:white!important}.income-panel h3{color:#fff!important}.income-panel .overline{color:#a2cad8!important}.income-number{color:#fff}.income-foot{color:#bce0e3}.income-dollar{color:#d6e7ed}.revenue-overview{border-top:3px solid #a083bb!important}.revenue-overview .revenue-tags span{background:#f4f1f8}.quick-icon,.quick-icon.violet,.quick-icon.gold{background:#f0f2f7!important;color:#526e92!important}.quick-row:nth-child(3) .quick-icon{background:#f8eef4!important;color:#a76a91!important}.quick-row:nth-child(4) .quick-icon{background:#fef2e6!important;color:#af774a!important}
/* Listas, botones y formularios. */
.table-shell,.responsive-table{border-color:#e8edf1}.row-actions{flex-wrap:nowrap;gap:6px}.icon-action{border-color:#dae5ed;background:#fff;color:#456276}.icon-action:hover,.row-menu[open] summary{background:#edf3f8}.row-menu summary{border-color:#dce5ec;color:#516f81}.row-menu-pop{width:230px;background:#fff;border-color:#dce5ed;box-shadow:0 20px 45px rgba(21,40,58,.15)}.row-menu-pop a,.row-menu-pop button{color:#354d60}.row-menu-pop a:hover,.row-menu-pop button:hover{background:#eef3f7}.btn-primary{background:#253747!important;color:#fff!important;box-shadow:none!important}.btn-primary:hover{background:#3d5365!important}.btn-outline,.btn-muted{background:#fff;color:#344f61;border:1px solid #d9e2e8}.btn-outline:hover{background:#edf2f6}.status--success,.badge.ok{color:#45748a!important;background:#ebf3f7!important}.status--warning,.badge.warn{color:#ab803a!important;background:#fff4e4!important}.status--danger,.badge.danger{color:#b45966!important;background:#fff0f2!important}.filter-tab.is-active{background:#edf3fa!important;color:#35556d!important;border-color:#d6e6f0!important}.input,.field input,.field select,.field textarea,.stack-form :is(input,textarea,select){background:#fbfcfd;border-color:#dce5eb}.field :is(input,textarea,select):focus,.stack-form :is(input,textarea,select):focus{border-color:#83a6bb!important;box-shadow:0 0 0 3px #e4eef5!important}.modal-head{background:#f9fafc}.modal-dialog{border-radius:17px;border:1px solid #dfe6ed}.toast{background:#1e303f;color:#fff;border-left:4px solid #d8a078}.alert.success,.server-flash-data{background:#edf7fb;color:#3d7187}.six-pill{display:inline-flex;border:1px solid #f0ddc9;background:#fff3e7;border-radius:999px;padding:7px 12px;font-weight:800;color:#a56e42;font-size:11px}.six-lead-actions{display:flex;gap:7px;flex-wrap:wrap}.six-lead-actions form{margin:0}.six-paypref{font-size:10px;font-weight:800;color:#a37053}.six-lead-footer{display:flex;gap:9px;align-items:center;justify-content:flex-start;flex-wrap:wrap;padding:18px 22px;border-top:1px solid #e4e9ef;color:#8394a0;font-size:11px}.six-lead-footer span{color:#2e627c;word-break:break-all}.six-lead-actions .btn{white-space:nowrap}
/* Identidad y legibilidad también en celulares. */
@media(max-width:1150px){.hero.hero-six{padding:25px}.hero-six .hero-side{min-width:215px;padding:15px}.hero-segments .segment{padding:9px 6px}.hero-six h2{font-size:29px}}
@media(max-width:920px){.hero.hero-six{gap:15px}.hero-six .hero-side{min-width:195px;max-width:250px}.hero-six h2{font-size:25px}}
@media(max-width:730px){.hero.hero-six{display:block;padding:25px 21px;min-height:auto}.hero-six .hero-side{margin-top:20px;min-width:0;max-width:100%}.hero-six h2{font-size:25px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:14px}.metric strong{font-size:25px}.portfolio-strip.six-portfolio{padding:18px}.page-intro h1{font-size:19px}}
@media(max-width:480px){.metric p{font-size:10px}.metric strong{font-size:23px}.six-lead-actions{display:grid}.hero-six .btn{font-size:11px}.sidebar .brand{height:58px}.content{padding:17px 12px 23px}}

/* V6.1 · cartera auditable, edición de contratos y accesibilidad */
.client-edit-button{display:inline-flex;gap:6px;align-items:center;padding:9px 11px;background:#f5f8fb;border:1px solid #dae5ef;border-radius:10px;color:#274455;font-weight:800;font-size:11px;white-space:nowrap;text-decoration:none}
.client-edit-button:hover{background:#e9f0f6}
.archive-list-link{color:#53748a;text-decoration:none;font-weight:800;font-size:11px;padding:8px 12px;background:#f5f8fb;border:1px solid #dae6ee;border-radius:10px;white-space:nowrap}
.panel-tools{gap:9px;flex-wrap:wrap}.archive-flag{display:inline-block;padding:4px 8px;border-radius:8px;background:#fdf0e5;color:#a36d3f;font-size:9px;font-weight:900;margin-top:5px}
.client-management{display:flex;flex-wrap:wrap;align-items:start;gap:13px;margin-top:18px;border-top:1px solid #e3eaf0;padding-top:16px}
.delete-forever{display:grid;gap:9px;min-width:min(100%,320px)}.delete-forever label{font-size:11px;font-weight:800;color:#65798a}.delete-forever input{margin-top:6px;display:block;width:100%;border:1px solid #dae4ec;border-radius:9px;padding:10px 12px;min-height:42px}
.btn-danger-outline{background:#fff!important;color:#ad5264!important;border:1px solid #ecc7d0!important;box-shadow:none!important}.btn-danger-outline:hover{background:#fff4f6!important}
.contract-in-client{background:#f7fafc;padding:19px 17px;border:1px solid #dde6ee;border-radius:13px;display:grid;gap:15px}
.inline-contract-head strong{display:block;font-size:13px;color:#2d4455}.inline-contract-head small{display:block;margin-top:6px;line-height:1.7;color:#7f94a3}
.client-contract-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.contract-in-client .field{min-width:0}
.service-bar-buttons{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.accounting-explain{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between;margin-bottom:18px;padding:24px;border-top:3px solid #32485a!important}
.accounting-title{flex:1 1 240px;max-width:410px}
.accounting-title h3{font-size:17px!important;font-family:'DM Sans',Manrope,sans-serif!important;font-weight:800!important;letter-spacing:-.025em!important;margin:9px 0!important}
.accounting-title p{font-size:11px;line-height:1.7;color:#7d90a0}
.accounting-figures{flex:1 1 320px;display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:10px}
.accounting-figures div{border:1px solid #e2eaf0;background:#f8fafc;border-radius:13px;padding:16px 11px}
.accounting-figures b{font:850 27px Manrope,sans-serif;color:#253f51;display:block;margin-bottom:8px}
.accounting-figures span{font-weight:750;font-size:10px;line-height:1.5;color:#718796;display:block}
.accounting-values{flex:1 0 100%;background:#eff4f8;border:1px solid #dce6ed;border-radius:10px;padding:13px 17px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
.accounting-values span{font-size:12px;color:#4d6778}.accounting-values strong{font-size:16px;color:#253c4f}.accounting-values small{font-size:10px;color:#7f929f;line-height:1.6}
.accounting-warning{background:#fff8ec;border:1px solid #f1dfbb;border-radius:14px;padding:16px 18px;color:#91663c;font-size:11px;line-height:1.6;margin-bottom:17px}
.accounting-warning strong{color:#805b39;font-size:13px}.accounting-warning p{margin:6px 0}.accounting-warning a{font-weight:800;color:#8a5932;display:inline-block;margin:5px 11px 0 0;text-decoration:underline}
.reversal-area{margin-top:14px;padding:11px 15px;border:1px dashed #e6d4d8;background:#fffafb;border-radius:11px}
.reversal-area summary{cursor:pointer;font-size:11px;font-weight:750;color:#ac6875}.reversal-form{display:grid;gap:12px;padding:12px 3px}.reversal-form p{font-size:11px;color:#7b8a96;line-height:1.6}.reversal-form label{display:grid;gap:8px;font-size:11px;color:#617589;font-weight:800}.reversal-form input{border:1px solid #e5d6da;border-radius:9px;padding:11px;background:#fff;min-width:0}.reversal-form button{justify-self:start}
@media(max-width:700px){.client-contract-grid{grid-template-columns:1fr}.accounting-figures{grid-template-columns:repeat(3,minmax(0,1fr))}.accounting-figures b{font-size:22px}.accounting-explain{padding:16px}.client-management{display:grid}}
@media(max-width:420px){.accounting-figures{grid-template-columns:1fr 1fr}.accounting-figures span{font-size:9px}.panel-tools{display:grid;width:100%}.panel-tools .search-field{width:100%}}

.older-contract-label{display:block;margin-top:6px;padding:5px 7px;border-radius:7px;border:1px solid #efd9bd;background:#fff9ed;color:#996c3d;font-size:9px;font-weight:750;width:max-content;max-width:100%}

/* PRO 6.2: calendario unificado y acciones al alcance en móvil y escritorio */
.renewal-current-dates{display:block;margin:5px 0;color:#687d8a;font-size:10px;line-height:1.5;font-weight:550}
.client-action-menu summary{min-width:33px;height:33px;display:grid;place-items:center;border-radius:8px;border:1px solid #d9e4ea;background:#fff;color:#315668;font-size:17px;font-weight:900;cursor:pointer;list-style:none}
.client-action-menu summary::-webkit-details-marker{display:none}
.client-action-menu .row-menu-pop{min-width:230px}
.client-action-menu .item-danger{color:#a84a55;font-weight:750}
.history-protection{display:block;white-space:normal;color:#8295a0;line-height:1.6;border-top:1px solid #edf1f4;padding:10px 8px;font-size:10px}
.old-contract-archive button{background:transparent;color:#a35d31;border:none;text-decoration:underline;font-size:10px;cursor:pointer;padding:5px 0 0;text-align:left}
.old-concept-note{display:block;max-width:280px;white-space:normal;line-height:1.5;color:#8b98a3;font-size:10px;margin-top:5px}
.finance-live-label{display:block;margin-top:3px;color:#314e5e;font-size:11px;font-weight:750}
.audit-concept{margin:15px 0;padding:12px 15px;background:#f8fafc;border:1px solid #e0eaf0;border-radius:12px;color:#667e8c;font-size:11px}
.audit-concept summary{color:#295a6b;font-weight:750;cursor:pointer}.audit-concept p{line-height:1.5}
.audit-concept form{margin-top:12px}.audit-concept button{justify-self:start}
@media(max-width:850px){.client-action-menu{margin:5px 0}.finance-live-label{white-space:normal}.renewal-current-dates{font-size:11px}}

.client-filter-pill{margin:0 9px;display:flex;align-items:center;gap:9px;color:#294b5c;background:#f0f6fa;border:1px solid #dbe9ef;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:700;max-width:300px}
.client-filter-pill a{color:#245f7d;white-space:nowrap;text-decoration:underline}
@media(max-width:640px){.client-filter-pill{flex-wrap:wrap;max-width:100%;margin:8px 0}}

/* PRO 6.3: acciones claras, baja definitiva explícita y tres actividades */
.client-delete-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #ecd4d8;background:#fffafb;color:#a64c59;font-size:10px;font-weight:800;text-decoration:none;padding:8px 10px;border-radius:9px;min-height:33px;white-space:nowrap}.client-delete-link:hover,.client-delete-modal-link:hover{background:#fff0f1;color:#913945;border-color:#e9bec5}
.client-delete-dialog{width:min(550px,calc(100vw - 24px));max-height:min(90vh,810px);overflow:auto}.client-delete-dialog .modal-head{position:sticky;top:0;z-index:2}.delete-client-summary{display:flex;align-items:center;gap:13px;background:#f5f8fa;border:1px solid #dfe8ee;border-radius:13px;padding:14px;margin:0 0 18px}.delete-client-summary .client-avatar{width:45px;height:45px;flex:none}.delete-client-summary img{width:100%;height:100%;object-fit:contain;border-radius:9px}.delete-client-summary b{display:block;color:#273d4b;font-size:12px}.delete-client-summary span:last-child{display:block;margin-top:6px;color:#708795;font-size:11px}.delete-client-form{display:grid;gap:15px}.delete-client-form .field{margin:0}.delete-client-form .checkline{padding:4px 0;font-size:11px;line-height:1.55}.delete-impact{border:1px solid #edd2d7;border-left:3px solid #b65e69;background:#fff9fa;border-radius:11px;padding:14px 15px}.delete-impact b{color:#a54853;font-size:12px}.delete-impact p{color:#6f7885;line-height:1.65;font-size:11px;margin:6px 0 0}.delete-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:12px;border-top:1px solid #e9eff3}.btn-danger-outline{border:1px solid #ebc6cd!important;color:#ae4755!important;background:#fff!important}.btn-danger-outline:hover{background:#fff1f2!important}.client-management{gap:12px}.client-delete-modal-link{align-self:center}.activity-counter{border:1px solid #dfe8ec;border-radius:99px;padding:8px 12px;color:#718795;font-size:10px;font-weight:700;background:#f9fbfc;white-space:nowrap}.timeline-item{min-height:76px}.row-actions{flex-wrap:wrap!important;align-items:center;justify-content:flex-start}
@media(max-width:900px){.client-delete-dialog{max-height:calc(100dvh - 24px)}.delete-actions{flex-wrap:wrap}.delete-actions .btn{flex:1}.activity-counter{white-space:normal}.client-delete-link{min-height:35px}}

/* MEGA-COBROS PRO 6.4 — vista de servicios agrupada por cliente.
   Mostrar el cliente una sola vez reduce duplicados visuales y evita saturar la pantalla. */
.services-directory-panel .collection-head{padding-bottom:20px}
.services-directory-panel .collection-head h3{font:800 17px Manrope,'DM Sans',sans-serif;letter-spacing:-.035em;color:#213645}
.services-directory-panel .collection-head p{line-height:1.65;max-width:630px}
.services-directory-panel .service-category-bar{border-bottom:1px solid #e6edf2}
.services-directory{padding:13px 18px 20px;display:grid;gap:11px;background:#f9fbfd;border-radius:0 0 17px 17px}
.service-client-card{min-width:0;background:#fff;border:1px solid #dce6ed;border-radius:13px;overflow:visible;box-shadow:0 2px 8px rgba(24,46,62,.025);transition:border-color .15s ease,box-shadow .15s ease}
.service-client-card[open]{border-color:#b7cbd8;box-shadow:0 10px 26px rgba(26,58,78,.065)}
.service-client-card[hidden],.service-detail-row[hidden],#noServiceMatches[hidden]{display:none!important}
.service-client-summary{list-style:none;display:grid;grid-template-columns:44px minmax(180px,1.4fr) minmax(110px,1.15fr) minmax(110px,auto) 26px;align-items:center;gap:15px;min-height:76px;padding:14px 18px;cursor:pointer;user-select:none;transition:background .15s ease;border-radius:12px}
.service-client-summary::-webkit-details-marker{display:none}
.service-client-summary::marker{content:''}
.service-client-summary:hover,.service-client-summary:focus-visible{background:#f4f8fb}
.service-client-summary:focus-visible{outline:3px solid #9cbacb;outline-offset:2px}
.service-client-logo{width:44px;height:44px;border-radius:11px;background:#ecf3f7;font-size:17px;font-weight:800;color:#295a6b;overflow:hidden}
.service-client-logo img{width:100%;height:100%;object-fit:contain}
.service-client-identity,.service-client-amount{display:grid;gap:6px;min-width:0}
.service-client-identity strong{font:800 12px Manrope,'DM Sans',sans-serif;line-height:1.35;color:#243946;overflow-wrap:anywhere}
.service-client-identity small,.service-client-amount small{font-size:10px;color:#8798a4;line-height:1.45;overflow-wrap:anywhere}
.service-client-amount b{font:800 11px 'DM Sans',sans-serif;color:#435b6c}
.service-client-state{display:inline-flex;justify-content:center;width:max-content;max-width:100%;align-items:center;padding:7px 10px;border-radius:8px;background:#f2f5f7;color:#587181;font:800 10px 'DM Sans',sans-serif;white-space:nowrap}
.service-client-state--paid{background:#edf4f8;color:#326480}
.service-client-state--pending{background:#fff5e9;color:#986d37}
.service-client-state--overdue{background:#fff0f2;color:#a95561}
.service-client-state--mixed{background:#eef0fa;color:#625d98}
.service-client-chevron{display:grid;place-items:center;color:#6e8796;transition:transform .16s ease}
.service-client-card[open] .service-client-chevron{transform:rotate(180deg)}
.service-client-details{border-top:1px solid #e2ebf0;background:#fff;overflow:visible;border-radius:0 0 13px 13px}
.service-client-details .service-detail-table-wrap{border-radius:0;overflow-x:auto;overflow-y:visible}
.service-client-details .service-detail-table th{padding:12px 14px;font-size:9px;letter-spacing:.08em;background:#f5f8fa;color:#758d9b}
.service-client-details .service-detail-table td{padding:16px 14px}
.service-client-details .service-detail-table{min-width:0;font-size:11px}
.service-client-details .service-detail-table th:first-child,.service-client-details .service-detail-table td:first-child{padding-left:22px}
.service-client-details .service-detail-table .row-title{font:800 11px Manrope,'DM Sans',sans-serif;max-width:260px}
.service-mini-symbol{flex:none;width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#f0f4f7;color:#46697e}
.service-client-details .row-actions{justify-content:flex-start}
.service-group-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:11px;border-top:1px solid #edf1f4;padding:12px 18px;background:#fbfcfd;border-radius:0 0 13px 13px}
.service-group-footer>span{font-size:10px;color:#899ca9;line-height:1.5}
.service-add-link{display:inline-flex;align-items:center;gap:6px;border:1px solid #d4e2e9;background:#fff;border-radius:9px;color:#305b70;padding:9px 12px;font-size:10px;font-weight:800;text-decoration:none;white-space:normal}
.service-add-link:hover{border-color:#a7c5d5;background:#f1f6f9}
.service-group-empty{padding:23px;color:#8296a2;font-size:11px}
.services-no-rows{text-align:center;padding:28px 15px;color:#758c9c;font-size:12px;line-height:1.8}
.services-no-rows p{font-size:11px}.services-no-rows strong{color:#365367}
@media(max-width:1120px){.service-client-summary{grid-template-columns:44px minmax(140px,1.4fr) minmax(105px,1fr) auto 24px;gap:10px}.service-client-details .service-detail-table th,.service-client-details .service-detail-table td{padding-left:10px;padding-right:10px}}
@media(max-width:760px){
  .services-directory{padding:10px 11px 14px;gap:9px}
  .service-client-summary{grid-template-columns:40px minmax(0,1fr) auto;gap:7px 12px;padding:14px 12px;min-height:75px}
  .service-client-logo{width:40px;height:40px;grid-row:1 / 3}
  .service-client-identity{grid-column:2;grid-row:1}.service-client-identity strong{font-size:11px}
  .service-client-amount{grid-column:2;grid-row:2;display:flex;gap:5px 8px;align-items:center;flex-wrap:wrap}
  .service-client-amount b,.service-client-amount small{font-size:10px}
  .service-client-state{grid-column:3;grid-row:2;max-width:95px;text-align:center;white-space:normal;font-size:9px;padding:6px 8px}
  .service-client-chevron{grid-column:3;grid-row:1}
  .service-client-details .service-detail-table-wrap{overflow:visible}
  .service-client-details .service-detail-table{width:100%;min-width:0}
  .service-client-details .service-detail-table th:first-child,.service-client-details .service-detail-table td:first-child{padding-left:0}
  .service-client-details .responsive-table .data-table tr{grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid #e4edf2;padding:15px 13px;gap:11px}
  .service-group-footer{padding:12px 13px}
}
@media(max-width:420px){.services-directory{padding:8px}.service-client-state{max-width:83px}.service-client-amount small{display:none}}

/* v6.5: contraste garantizado para portada y Solicitudes (evita texto blanco sobre blanco). */
body .page-main .hero.hero-six {
  background-color:#172632 !important;
  background-image:linear-gradient(115deg,#16232f 0%,#253b4b 66%,#354451 100%) !important;
  border-color:#334655 !important;color:#fff !important;
  isolation:isolate;overflow:hidden;
}
body .page-main .hero.hero-six .hero-copy,
body .page-main .hero.hero-six .hero-side {position:relative;z-index:1}
body .page-main .hero.hero-six h2 {color:#fff !important;font-size:clamp(24px,2.7vw,32px) !important;line-height:1.26 !important}
body .page-main .hero.hero-six h2 em {color:#f4b78d !important}
body .page-main .hero.hero-six p {color:#d5e0e7 !important}
body .page-main .hero.hero-six .hero-tag {color:#efbd98 !important}
body .page-main .hero.hero-six .hero-side-head,
body .page-main .hero.hero-six .hero-side-head span,
body .page-main .hero.hero-six .hero-side-head strong,
body .page-main .hero.hero-six .hero-segments .segment {color:#fff !important}
body .page-main .hero.hero-six .btn-hero-secondary {background:#324656 !important;color:#fff !important;border-color:#5c7182 !important}
body .page-main .hero.hero-six .btn-ink {background:#fff !important;color:#193142 !important}
.leads-panel, .leads-panel .panel-heading, .leads-panel .table-shell {background:#fff!important;color:#263c48!important}
.leads-panel .panel-heading h3,.leads-panel .row-title,.leads-panel .data-table td {color:#273f4c!important}
.leads-panel .panel-heading p,.leads-panel .row-subtitle {color:#657f8e!important}
.leads-panel .data-table th {background:#f3f6fa!important;color:#617989!important}
.leads-panel .six-lead-actions .btn-outline,.leads-panel .six-lead-actions .icon-action {color:#274d61!important;background:#fff!important;border-color:#d7e4ed!important}
.leads-panel .six-lead-actions .btn-outline:hover,.leads-panel .six-lead-actions .icon-action:hover {background:#edf4f8!important}
.leads-panel .six-lead-footer {background:#f9fbfc;color:#4e6a7c}
/* Desplegable por cliente. Al abrirlo, únicamente allí se ve el detalle de sus contratos. */
.service-client-card:not([open]) .service-client-details {display:none!important}
.service-client-summary {background:#fff}
.service-client-card[open]>.service-client-summary {background:#f2f7fa}
.service-client-details .service-detail-table td {vertical-align:middle}
@media(max-width:760px){.hero.hero-six .hero-side{width:100%!important}.service-client-card .row-menu-pop{max-width:90vw}.leads-panel .responsive-table .data-table tr{background:#fff}}
.lead-cart-lines{display:grid;gap:5px;margin-top:9px;padding:9px 10px;background:#f5f8fa;color:#324e60;border:1px solid #e5edf1;border-radius:9px;font-size:10px;font-weight:750;line-height:1.55}
.lead-cart-lines small{display:block;color:#718897;font-size:9px}
.lead-approval{width:100%;border:1px solid #dbe5eb;border-radius:9px;padding:10px 11px;background:#f9fbfc;color:#2b5062}
.lead-approval summary{font-weight:800;font-size:10px;cursor:pointer}
.lead-approval form{margin:12px 0 0;display:grid;gap:8px}
.lead-approval label{display:flex;align-items:flex-start;gap:8px;line-height:1.55;color:#506e7d;font-size:10px;white-space:normal}
.lead-approval input{margin-top:2px;flex:none}
.lead-approval .btn{background:#233c4d!important;color:#fff!important;border-radius:8px;font-size:10px;padding:10px}
.lead-heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.lead-heading-actions .btn{font-size:10px}


/* PRO 6.6 — tablero compacto, solicitudes destacadas y categorías reales. */
.dash-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;padding:22px 23px;border-radius:17px;background:#fff;border:1px solid #e0e7ee;box-shadow:0 5px 22px rgba(20,38,55,.035)}
.dash-head .overline{font-size:9px;color:#718697!important;letter-spacing:.14em}
.dash-head h1{font-family:Manrope,'DM Sans',sans-serif!important;font-weight:800;font-size:clamp(18px,2.1vw,22px);color:#192d3a;letter-spacing:-.03em;line-height:1.35;margin:7px 0 5px}
.dash-head p{font-size:11px;color:#8494a1;margin:0;line-height:1.6}
.dash-head-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:9px}
.dash-btn-primary{min-height:39px;white-space:nowrap;background:#203847!important;color:#fff!important;border-color:#203847!important;font-weight:800}
.dash-btn-request{min-height:39px;white-space:nowrap;background:#fceee4!important;color:#8c5131!important;border:1px solid #f0d8c5!important;font-weight:800;box-shadow:none!important}
.dash-btn-request:hover{background:#f9e1ce!important}.dash-alert-count{background:#a85c3d;color:#fff;padding:2px 6px;border-radius:20px;min-width:18px;text-align:center;font-size:10px}
.metrics-new{margin-bottom:21px}
.metrics-new .metric{display:block;text-decoration:none;transition:transform .14s ease,box-shadow .14s ease;min-height:163px;border-left-width:3px!important}
.metrics-new .metric:hover{transform:translateY(-2px);box-shadow:0 12px 27px rgba(21,41,58,.08)!important}
.metrics-new .metric:focus-visible{outline:3px solid #a3c2d4;outline-offset:3px}
.metrics-new .metric p{color:#526879;font-size:11px;margin:12px 0 4px;font-weight:700}
.metrics-new .metric strong{color:#1c2b39;font:800 29px/1.18 Manrope,'DM Sans',sans-serif;letter-spacing:-.035em}
.metrics-new .metric small{font-size:10px;color:#8b9caa;margin-top:5px}
.metrics-new .metric-client{border-left-color:#5787b7!important}.metrics-new .metric-service{border-left-color:#8a79ba!important}.metrics-new .metric-renewals{border-left-color:#d69b61!important}.metrics-new .metric-expired{border-left-color:#b86f79!important}
.dashboard-categories{display:flex;gap:22px;justify-content:space-between;align-items:center;padding:20px 22px!important;margin-bottom:23px}
.dashboard-categories-heading{flex:0 1 35%;min-width:200px}.dashboard-categories-heading .overline{font-size:9px}.dashboard-categories-heading h3{font:800 15px/1.45 Manrope,'DM Sans',sans-serif;color:#213744;margin:6px 0 3px;letter-spacing:-.02em}.dashboard-categories-heading p{font-size:10px;color:#8295a3;margin:0 0 9px}.dashboard-categories-heading .text-link{font-size:10px}
.dashboard-category-pills{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;flex:1 1 auto}
.dashboard-category-pill{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:130px;max-width:250px;padding:12px 14px;border:1px solid #dae4eb;background:#f3f7fa;border-radius:12px;color:#34546a;font-size:11px;font-weight:800;line-height:1.35}
.dashboard-category-pill span{overflow-wrap:anywhere;flex:1}.dashboard-category-pill strong{display:grid;place-items:center;width:25px;height:25px;min-width:25px;border-radius:8px;font-size:12px;background:#fff;color:#26485c}
.dashboard-category-pill:nth-child(4n+1){background:#edf3fc;border-color:#dae5f5}.dashboard-category-pill:nth-child(4n+2){background:#f2eefb;border-color:#e7def7}.dashboard-category-pill:nth-child(4n+3){background:#fff3e8;border-color:#f6e2ce}.dashboard-category-pill:nth-child(4n+4){background:#f7eff2;border-color:#eadce2}
.dashboard-category-pill:hover{filter:brightness(.985);box-shadow:0 4px 12px rgba(34,62,79,.06)}
@media(max-width:980px){.dash-head{flex-direction:column;align-items:stretch}.dash-head-actions{justify-content:flex-start}.dashboard-categories{flex-direction:column;align-items:stretch}.dashboard-categories-heading{flex:none}.dashboard-category-pills{justify-content:flex-start}}
@media(max-width:600px){.dash-head{padding:17px 15px}.dash-head h1{font-size:19px}.metrics-new .metric{min-height:139px;padding:14px}.dashboard-categories{padding:17px 14px!important}.dashboard-category-pill{min-width:calc(50% - 6px);max-width:none;flex:1}}


/* PRO 6.7 — cobranza explícita y confirmaciones laterales (desktop y móvil). */
.service-client-state--suspended{color:#687684;background:#edf0f4}
#servicesTable .quick-pay-trigger{display:inline-flex;align-items:center;gap:5px;margin-top:8px;
  border:1px solid #bad8cd;background:#ecf8f2;color:#27664e;padding:7px 10px;
  border-radius:9px;cursor:pointer;font:800 10px 'DM Sans',Manrope,sans-serif;
  text-align:left;white-space:normal}
#servicesTable .quick-pay-trigger:hover,#servicesTable .quick-pay-trigger:focus-visible{background:#d7eee5;border-color:#79baa4}
#servicesTable .service-create-due-form{margin:0}
#servicesTable .change-state{margin-top:9px;color:#557086;font-size:10px}
.mc-side-confirm-layer[hidden],.mc-pay-layer[hidden]{display:none!important}
.mc-side-confirm-layer,.mc-pay-layer{position:fixed;inset:0;z-index:940;display:flex;justify-content:flex-end;isolation:isolate}
.mc-side-backdrop,.mc-pay-backdrop{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;background:rgba(20,37,52,.25);cursor:default}
.mc-side-confirm,.mc-pay-drawer{position:relative;z-index:1;outline:0;background:#fff;border-left:1px solid #dbe6eb;
  width:min(410px,100vw);max-width:100%;height:100dvh;overflow:auto;box-shadow:-15px 0 55px rgba(19,35,50,.18);
  padding:31px 27px 29px;animation:mc67PanelIn .25s cubic-bezier(.18,.72,.24,1) both;font-family:'DM Sans',Manrope,'Segoe UI',sans-serif}
@keyframes mc67PanelIn{from{opacity:.5;transform:translateX(105%)}to{opacity:1;transform:translateX(0)}}
.mc-side-confirm-header,.mc-pay-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:26px}
.mc-side-dot{display:grid;place-items:center;width:47px;height:47px;background:#eaf3f7;color:#386980;border-radius:15px;font:900 24px sans-serif}
.mc-side-danger .mc-side-dot{background:#fff0f1;color:#bb5966}
.mc-side-x,.mc-pay-close{display:grid;place-items:center;background:#f4f7f9;color:#647f8c;border:1px solid #e0e9ed;
  width:38px;height:38px;font-size:25px;cursor:pointer;border-radius:11px}
.mc-side-confirm h2,.mc-pay-drawer h2{font-size:23px;font-weight:850;letter-spacing:-.03em;color:#243f4f;line-height:1.25;margin:0 0 13px}
.mc-side-confirm p,.mc-pay-intro{font-size:13px;line-height:1.75;color:#596e7e;margin:0;overflow-wrap:anywhere}
.mc-side-confirm-foot{display:flex;gap:10px;margin-top:34px;padding-top:20px;border-top:1px solid #e8eef2}
.mc-side-confirm-foot button{flex:1;min-height:43px;border-radius:10px;cursor:pointer;font:800 12px 'DM Sans',sans-serif}
.mc-side-no{background:#f4f7fa;color:#406073;border:1px solid #dde8ed}
.mc-side-yes{background:#295a6b;color:#fff;border:1px solid #295a6b}
.mc-side-danger .mc-side-yes{background:#a95463;border-color:#a95463}
.mc-side-confirm-foot button:hover{filter:brightness(.96)}
.mc-pay-layer{z-index:935}
.mc-pay-drawer{width:min(455px,100vw);padding:31px 29px;background:linear-gradient(180deg,#f8fbfd,#fff 240px)}
.mc-pay-eyebrow{color:#b37a51;font-size:10px;letter-spacing:.14em;font-weight:900}
.mc-pay-head{margin-bottom:13px}
.mc-pay-drawer h2{margin:6px 0 0}
.mc-pay-intro{padding-bottom:21px;border-bottom:1px solid #e0eaf0;margin-bottom:20px}
.mc-pay-content .quick-pay-form{display:grid;gap:16px}
.mc-pay-content .quick-pay-form>strong{background:#eaf3f8;padding:15px;border-radius:12px;color:#2a5872;font:850 16px 'DM Sans',sans-serif}
.mc-pay-content .quick-pay-form>small{font-size:11px;line-height:1.7;color:#637c8c}
.mc-pay-content .quick-pay-form>label{display:grid;gap:8px;color:#395465;font-size:11px;font-weight:800}
.mc-pay-content .quick-pay-form input:not([type=checkbox]),.mc-pay-content .quick-pay-form select{width:100%;min-height:45px;
  padding:11px 13px;border:1px solid #cfdfe7;border-radius:10px;background:#fff;color:#273f50;font:650 13px 'DM Sans',sans-serif}
.mc-pay-content .quick-pay-check{display:flex!important;align-items:flex-start;flex-direction:row!important;gap:10px!important;
  line-height:1.55;font-size:11px!important;background:#f3f8fa;border:1px solid #e0ebf0;padding:13px;border-radius:10px}
.mc-pay-content .quick-pay-check input{margin:2px 0 0;accent-color:#295a6b;width:16px;height:16px;flex:none}
.mc-pay-content .quick-pay-save{min-height:47px;padding:13px 16px;background:#295a6b;color:white;border:0;
  border-radius:10px;font-weight:850;font-size:12px;cursor:pointer}
.mc-pay-content .quick-pay-save:hover{background:#244a5b}
body.mc-pay-open,body.mc-side-confirm-open{overflow:hidden}
/* Mensajes normales salen desde el lateral derecho, NO una ventana del navegador. */
body .toast{top:104px!important;right:20px!important;left:auto!important;bottom:auto!important;
  background:#203541!important;color:#f7fafc!important;border:1px solid #3c5867!important;border-left:4px solid #73b19a!important;
  border-radius:14px!important;box-shadow:0 16px 45px rgba(13,35,50,.23)!important;
  max-width:min(395px,calc(100vw - 35px))!important;width:max-content!important;
  transform:translate3d(calc(100% + 40px),0,0)!important;opacity:0!important;
  transition:transform .28s cubic-bezier(.17,.68,.3,1),opacity .28s ease!important}
body .toast.show{transform:translate3d(0,0,0)!important;opacity:1!important}
body .toast .toast-message{color:#f7fafc!important}
body .toast .toast-close{color:#d5e4eb!important}
body .toast--error{border-left-color:#e09b9e!important}
@media(max-width:650px){
 .mc-side-confirm,.mc-pay-drawer{width:min(420px,95vw);padding:22px 18px;}
 body .toast{top:81px!important;right:9px!important;left:auto!important;width:min(370px,calc(100vw - 18px))!important}
 .mc-side-confirm h2,.mc-pay-drawer h2{font-size:20px}
}
@media(prefers-reduced-motion:reduce){.mc-side-confirm,.mc-pay-drawer{animation:none}}

/* 6.9 · Notificación de seguridad en ajustes */
.login-alert-pref{padding:14px 16px;border:1px solid #d6e5ef;border-radius:12px;background:#f3f8fb;margin-top:3px}
.login-alert-pref .checkline{display:flex;gap:12px;align-items:flex-start;color:#213547;font-size:13px}
.login-alert-pref .checkline input{margin-top:4px;accent-color:#295a6b;flex-shrink:0}
.login-alert-pref small,.login-alert-pref .muted{color:#526a80}
.login-alert-pref strong{font-weight:750}


/* PRO 7.1 · Acceso de clientes desde la portada administrativa */
.client-access-links{margin-top:18px;padding-top:18px;border-top:1px solid #dfe7ec;display:grid;gap:9px;text-align:center}
.client-access-links>span{font-size:10px;font-weight:800;color:#7f929f;letter-spacing:.08em;text-transform:uppercase}
.client-create-link{font-size:11px;font-weight:800;color:#a46b45;padding:5px}

/* =========================================================
   MEGA-COBROS PRO 8.2 · ACCESO UNIFICADO ADMIN / CLIENTE
   Usa Autonomous para títulos y Akira solo en micro-etiquetas.
   ========================================================= */
.unified-login-body{margin:0;min-height:100vh;background:#f5f7f9;color:#172938;overflow-x:hidden}
.unified-login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(430px,.92fr) minmax(560px,1.08fr)}
.unified-login-brand{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;padding:42px 54px;background:
  radial-gradient(circle at 75% 20%,rgba(90,165,190,.18),transparent 32%),
  linear-gradient(145deg,#10202b 0%,#173342 55%,#285c6d 100%);color:#fff;overflow:hidden}
.unified-login-brand:before{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-240px;top:20%;box-shadow:0 0 0 65px rgba(255,255,255,.018),0 0 0 130px rgba(255,255,255,.014)}
.unified-login-brand:after{content:"";position:absolute;left:54px;right:54px;bottom:122px;height:1px;background:linear-gradient(90deg,rgba(255,255,255,.16),transparent)}
.unified-brand-top{display:flex;align-items:center;gap:17px;position:relative;z-index:1}
.unified-logo-mark{width:55px;height:55px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.18);box-shadow:0 15px 35px rgba(0,0,0,.18)}
.unified-logo-mark img{width:45px;height:45px;object-fit:contain}
.unified-brand-name{font-family:'Autonomous',Manrope,sans-serif;font-weight:800;font-size:27px;letter-spacing:.025em;line-height:1;color:#fff}
.unified-brand-name small{display:block;margin-top:8px;font-family:'Akira','DM Sans',sans-serif;font-size:6px;letter-spacing:.24em;color:#9fc1cf;font-weight:400}
.unified-brand-copy{max-width:640px;position:relative;z-index:1;padding:70px 0 120px}
.unified-kicker{font-family:'Akira','DM Sans',sans-serif;font-size:7px;letter-spacing:.22em;color:#8fc8da;display:inline-block}
.unified-kicker.dark{color:#647c8d}
.unified-brand-copy h1{font-family:'Autonomous',Manrope,sans-serif;font-weight:800;font-size:clamp(42px,5vw,70px);letter-spacing:-.045em;line-height:.99;margin:20px 0 24px;color:#fff}
.unified-brand-copy h1 em{font-style:normal;color:#b3dbe7}
.unified-brand-copy p{max-width:570px;color:#d1e0e6;font-size:14px;line-height:1.85;margin:0}
.unified-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:34px}
.unified-benefits span{display:flex;align-items:center;gap:9px;color:#e4eef2;font-weight:700;font-size:11px;padding:12px 13px;border-radius:13px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035)}
.unified-benefits svg{color:#9fd6e5;flex:none}
.unified-brand-footer{position:relative;z-index:1;display:flex;flex-direction:column;gap:7px;color:#d8e7ed;padding-bottom:5px}
.unified-brand-footer b{font-family:'Autonomous',Manrope,sans-serif;font-size:12px;font-weight:400}
.unified-brand-footer span{font-family:'Akira','DM Sans',sans-serif;font-size:6px;letter-spacing:.18em;color:#8fb2c1}

.unified-login-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 54px;background:#f7f8fa;position:relative}
.unified-login-card{width:min(100%,590px);background:#fff;border:1px solid #dde5eb;border-radius:28px;padding:28px 34px 31px;box-shadow:0 30px 70px rgba(26,44,60,.095)}
.unified-login-card.is-register{width:min(100%,760px)}
.unified-access-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:6px;background:#f1f4f7;border:1px solid #e3e9ee;border-radius:16px;margin-bottom:31px}
.unified-access-tabs a{display:flex;align-items:center;justify-content:center;gap:7px;padding:12px 10px;border-radius:11px;color:#6e7f8c;text-decoration:none;font-size:11px;font-weight:800;transition:.18s ease}
.unified-access-tabs a:hover{color:#274758;background:#fff}
.unified-access-tabs a.is-active{background:#182b3a;color:#fff;box-shadow:0 8px 20px rgba(18,42,56,.16)}
.unified-access-tabs a.is-active svg{color:#a9d7e4}
.unified-form-heading{margin-bottom:23px}
.unified-form-heading h2{font-family:'Autonomous',Manrope,sans-serif;font-weight:800;font-size:27px;letter-spacing:-.025em;color:#192d3c;margin:11px 0 8px;line-height:1.25}
.unified-form-heading p{margin:0;color:#7b8d99;font-size:12px;line-height:1.7;max-width:560px}
.unified-form{display:grid;gap:17px}
.unified-form label{display:grid;gap:8px;color:#314b5a;font-size:11px;font-weight:800}
.unified-form label small{font-weight:600;color:#94a2ab}
.unified-form input,.unified-form select{width:100%;box-sizing:border-box;border:1px solid #d7e2e9;border-radius:13px;background:#fbfcfd;color:#18303f;padding:13px 14px;min-height:48px;outline:none;font:500 13px Manrope,'DM Sans',sans-serif;transition:.18s ease}
.unified-form input:focus,.unified-form select:focus{border-color:#5e94a7;box-shadow:0 0 0 4px rgba(50,112,133,.09);background:#fff}
.unified-form input::placeholder{color:#afbac1}
.unified-submit{border:0;border-radius:13px;background:#1d3546;color:#fff;min-height:50px;padding:13px 18px;font-weight:800;font-size:12px;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;box-shadow:0 12px 24px rgba(25,51,68,.13);transition:.18s ease}
.unified-submit:hover{transform:translateY(-1px);background:#152b39;box-shadow:0 15px 28px rgba(25,51,68,.17)}
.unified-submit--client{background:#295a6b}
.unified-submit--client:hover{background:#214d5c}
.unified-submit--register{background:linear-gradient(135deg,#295a6b,#34798b)}
.unified-form-foot{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:20px;padding-top:19px;border-top:1px solid #e9edf1;color:#8a999f;font-size:10px}
.unified-inline-note{text-align:center;margin-top:20px;color:#8a9aa5;font-size:11px}
.unified-inline-note a{color:#a86c45;font-weight:800;text-decoration:none}
.unified-inline-note a:hover{text-decoration:underline}
.unified-register-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.unified-register-form .wide{grid-column:1/-1}
.unified-check{display:flex!important;grid-column:1/-1;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:10px!important;padding:11px 12px;border:1px solid #e5eaee;background:#fafcfd;border-radius:12px;font-weight:600!important;color:#6d808c!important;line-height:1.55}
.unified-check input{width:17px!important;height:17px!important;min-height:0!important;margin-top:2px;accent-color:#295a6b}
.unified-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.unified-trust-row{width:min(100%,620px);display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:18px;color:#91a0aa;font-size:9px}
.unified-trust-row span{display:flex;align-items:center;gap:5px}
.unified-login-card .alert{margin-bottom:18px}

@media(max-width:1100px){
  .unified-login-shell{grid-template-columns:1fr}
  .unified-login-brand{min-height:auto;padding:28px 30px}
  .unified-brand-copy{padding:50px 0 48px}
  .unified-brand-copy h1{font-size:50px}
  .unified-brand-footer{display:none}
  .unified-login-brand:after{display:none}
  .unified-login-main{padding:34px 22px 46px}
}
@media(max-width:680px){
  .unified-login-brand{padding:22px 18px}
  .unified-logo-mark{width:48px;height:48px}
  .unified-logo-mark img{width:39px;height:39px}
  .unified-brand-name{font-size:21px}
  .unified-brand-copy{padding:34px 0 20px}
  .unified-brand-copy h1{font-size:38px}
  .unified-benefits{grid-template-columns:1fr}
  .unified-login-main{padding:22px 12px 34px}
  .unified-login-card,.unified-login-card.is-register{padding:20px 16px 24px;border-radius:20px}
  .unified-access-tabs{grid-template-columns:1fr;margin-bottom:23px}
  .unified-form-heading h2{font-size:23px}
  .unified-register-form{grid-template-columns:1fr}
  .unified-register-form .wide{grid-column:auto}
  .unified-check{grid-column:auto!important}
}

/* PRO 8.3 · Ojito mostrar/ocultar contraseña */
.password-field-wrap{position:relative;display:block;width:100%}
.password-field-wrap>input{padding-right:52px!important}
.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:10px;background:transparent;color:#6d8290;display:grid;place-items:center;cursor:pointer;z-index:3;transition:background .18s ease,color .18s ease,transform .18s ease;padding:0}
.password-toggle:hover{background:#edf3f6;color:#295a6b}
.password-toggle:focus-visible{outline:2px solid #5f96aa;outline-offset:2px;background:#edf3f6}
.password-toggle:active{transform:translateY(-50%) scale(.96)}
.password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.password-toggle.is-visible{color:#295a6b;background:#edf3f6}
.unified-form .password-field-wrap>input{margin:0}

/* MEGA-COBROS PREMIUM 8.4 · acceso unificado centrado */
.unified-login-body{background:#f4f7f9;min-height:100vh;overflow:auto}
.unified-login-shell--centered{min-height:100vh!important;display:block!important;background:
radial-gradient(circle at 15% 15%,rgba(47,104,124,.08),transparent 28%),
radial-gradient(circle at 85% 80%,rgba(204,137,91,.06),transparent 27%),
linear-gradient(180deg,#f6f8fa 0%,#f2f5f7 100%)}
.unified-login-main--centered{min-height:100vh!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:36px 20px 30px!important;background:transparent!important;box-sizing:border-box}
.unified-brand-center{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 22px;text-align:left}
.unified-logo-mark--center{width:52px;height:52px;border-radius:15px;background:linear-gradient(145deg,#173444,#2b6072);border:1px solid rgba(255,255,255,.45);box-shadow:0 14px 28px rgba(24,52,68,.16)}
.unified-logo-mark--center img{width:43px;height:43px}
.unified-brand-name--center{font-family:'Autonomous',Manrope,sans-serif;color:#193343;font-size:26px;letter-spacing:.025em;line-height:1}
.unified-brand-name--center small{font-family:'Akira','DM Sans',sans-serif;color:#6f8b9a;font-size:6px;letter-spacing:.22em;margin-top:7px}
.unified-login-card--centered{position:relative;isolation:isolate;overflow:hidden;width:min(100%,560px)!important;padding:28px 32px 30px!important;border-radius:26px!important;border:1px solid rgba(221,230,235,.88)!important;background:rgba(255,255,255,.985)!important;box-shadow:0 26px 70px rgba(28,48,62,.10)!important}
.unified-login-card--centered::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;background:conic-gradient(from 0deg,#69c7ff 0deg,#7ee781 55deg,#ffc857 120deg,#ff8d5a 185deg,#ff70b8 245deg,#8a8dff 305deg,#69c7ff 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.92;animation:mcPremiumRing 9s linear infinite;pointer-events:none;z-index:0}
.unified-login-card--centered::after{content:"";position:absolute;inset:16px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,0));pointer-events:none;z-index:0}
.unified-login-card--centered>*{position:relative;z-index:1}
.unified-login-card--centered.is-register{width:min(100%,760px)!important}
@keyframes mcPremiumRing{to{transform:rotate(1turn)}}
.unified-login-card--centered .unified-access-tabs{margin-bottom:27px;border-radius:16px;padding:6px;gap:6px;background:linear-gradient(180deg,#f5f7f9,#eef3f6);border:1px solid #e2eaef;box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.unified-login-card--centered .unified-access-tabs a{min-height:42px;padding:10px 12px;border-radius:10px;font-size:11px}
.unified-login-card--centered .unified-access-tabs a.is-active{background:#1c3444;box-shadow:0 8px 18px rgba(26,52,68,.14),0 0 0 1px rgba(255,255,255,.08) inset}
.unified-form-heading--center{text-align:center;margin-bottom:24px}
.unified-form-heading--center .unified-kicker{font-family:'Akira','DM Sans',sans-serif;font-size:6px;letter-spacing:.18em;color:#738b99}
.unified-form-heading--center h2{font-family:'Autonomous',Manrope,sans-serif;font-style:normal;font-size:26px;letter-spacing:-.015em;line-height:1.2;margin:10px 0 8px;color:#1b3140}
.unified-form-heading--center p{margin:0 auto;max-width:470px;color:#80909a;font-size:12px;line-height:1.65}
.unified-login-card--centered .unified-form{gap:16px}
.unified-login-card--centered .unified-form label{font-size:11px;color:#294554}
.unified-login-card--centered .unified-form input,.unified-login-card--centered .unified-form select{min-height:50px;border-radius:12px;background:#fbfcfd;border-color:#d7e2e8;padding:13px 14px}
.unified-login-card--centered .unified-form input:focus,.unified-login-card--centered .unified-form select:focus{border-color:#5d91a4;box-shadow:0 0 0 4px rgba(48,104,124,.09);background:#fff}
.unified-login-card--centered .password-field-wrap .password-toggle-btn{right:9px;border-radius:9px;color:#738a97;background:transparent}
.unified-login-card--centered .password-field-wrap .password-toggle-btn:hover{background:#edf3f6;color:#274f61}
.unified-login-card--centered .unified-submit{min-height:50px;border-radius:14px;background:linear-gradient(135deg,#203c4e,#295a6b);box-shadow:0 14px 24px rgba(28,58,76,.16)}
.unified-login-card--centered .unified-submit--client{background:#295a6b}
.unified-login-card--centered .unified-submit--register{background:#295a6b}
.unified-login-card--centered .unified-form-foot{margin-top:18px;padding-top:17px}
.unified-trust-row--centered{margin-top:18px;width:auto;gap:18px;color:#82929c}
.unified-trust-row--centered span{font-size:9px}
.unified-login-card--centered .unified-inline-note{margin-top:17px}
.unified-login-card--centered .unified-register-form{gap:14px}
.unified-login-card--centered .unified-check{border-radius:11px;background:#f9fbfc}

@media(max-width:760px){
  .unified-login-main--centered{justify-content:flex-start!important;padding:24px 14px 28px!important}
  .unified-brand-center{margin-bottom:18px}
  .unified-brand-name--center{font-size:22px}
  .unified-login-card--centered,.unified-login-card--centered.is-register{width:100%!important;padding:22px 18px 24px!important;border-radius:20px!important}
  .unified-login-card--centered .unified-access-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
  .unified-login-card--centered .unified-access-tabs a{font-size:10px;padding:9px 5px;gap:4px}
  .unified-form-heading--center h2{font-size:23px}
}
@media(max-width:520px){
  .unified-logo-mark--center{width:46px;height:46px}
  .unified-logo-mark--center img{width:38px;height:38px}
  .unified-brand-name--center{font-size:19px}
  .unified-login-card--centered .unified-access-tabs a svg{display:none}
  .unified-login-card--centered .unified-register-form{grid-template-columns:1fr!important}
  .unified-login-card--centered .unified-register-form .wide{grid-column:auto!important}
}

/* MEGA-COBROS PREMIUM 8.6 · acceso centrado, video opaco y filo animado */
.unified-login-video-body{position:relative;min-height:100vh;background:#e9eff3;overflow-x:hidden}
.unified-login-video{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0;opacity:.36;filter:saturate(.72) contrast(.92) brightness(.82)}
.unified-video-overlay{position:fixed;inset:0;z-index:1;background:linear-gradient(180deg,rgba(240,245,248,.72),rgba(244,247,249,.82)),radial-gradient(circle at 50% 36%,rgba(255,255,255,.22),rgba(18,39,52,.08));backdrop-filter:blur(1.2px)}
.unified-login-shell--centered{position:relative;z-index:2;background:transparent!important}
.unified-login-main--centered{position:relative;z-index:2;min-height:100vh!important;justify-content:center!important;padding:34px 18px!important}
.unified-login-tools{width:min(100%,570px);display:flex;justify-content:flex-end;margin:0 0 10px}
.unified-locale-picker{position:relative;z-index:20}
.unified-locale-picker summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid rgba(198,212,220,.9);border-radius:12px;background:rgba(255,255,255,.86);box-shadow:0 10px 28px rgba(21,41,56,.07);font-size:11px;font-weight:800;color:#314f60;backdrop-filter:blur(14px)}
.unified-locale-picker summary::-webkit-details-marker{display:none}
.unified-locale-picker summary b{font-size:10px;color:#7f929e}
.unified-locale-pop{position:absolute;right:0;top:calc(100% + 8px);width:240px;padding:9px;background:#fff;border:1px solid #dce6ec;border-radius:15px;box-shadow:0 22px 60px rgba(20,40,54,.18);display:grid;gap:4px}
.unified-locale-pop>span{padding:8px 9px 4px;font-size:8px;letter-spacing:.16em;font-weight:900;color:#94a3ad}
.unified-locale-pop a{display:block;padding:9px 10px;border-radius:9px;color:#345468;text-decoration:none;font-size:11px;font-weight:750}
.unified-locale-pop a:hover{background:#f1f6f8}
.unified-brand-center{margin:0 0 15px!important;filter:drop-shadow(0 8px 16px rgba(22,42,54,.08))}
.unified-brand-name--center{color:#173447!important}
.unified-brand-name--center small{color:#55768a!important}

/* El color corre por el FILO; no rota el cuadro ni cruza el contenido. */
.unified-login-frame{width:min(100%,570px);padding:2px;border-radius:27px;background:linear-gradient(90deg,#59bfff,#7de58d,#ffd058,#ff8c60,#f26db3,#8a8cff,#59bfff);background-size:320% 100%;animation:mcBorderFlow 8s linear infinite;box-shadow:0 28px 80px rgba(18,40,55,.14)}
.unified-login-frame.is-register{width:min(100%,770px)}
@keyframes mcBorderFlow{0%{background-position:0% 50%}100%{background-position:320% 50%}}
.unified-login-card--centered{width:100%!important;border:0!important;border-radius:25px!important;box-shadow:none!important;background:rgba(255,255,255,.965)!important;backdrop-filter:blur(18px);overflow:visible!important}
.unified-login-card--centered::before,.unified-login-card--centered::after{display:none!important;content:none!important}
.unified-login-card--centered>*{position:relative;z-index:1}
.unified-access-tabs--two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.unified-login-card--centered .unified-access-tabs{background:#f0f4f6!important;border:1px solid #dde7ec!important;margin-bottom:28px!important}
.unified-login-card--centered .unified-access-tabs a{font-size:11px!important;min-height:44px!important}
.unified-login-card--centered .unified-access-tabs a.is-active{background:linear-gradient(135deg,#1d394a,#274f61)!important;color:#fff!important;box-shadow:0 10px 24px rgba(27,57,73,.17)!important}
.unified-form-heading--center h2{font-family:'Autonomous',Manrope,sans-serif!important;font-size:28px!important;letter-spacing:-.015em!important;font-style:normal!important}
.unified-form-heading--center .unified-kicker{font-family:'Akira','DM Sans',sans-serif!important;font-size:6px!important;letter-spacing:.18em!important}
.unified-login-card--centered .unified-form input,.unified-login-card--centered .unified-form select{background:rgba(248,251,253,.94)!important}
.unified-login-card--centered .unified-submit{background:linear-gradient(135deg,#1d3c4d,#2d6677)!important}
.unified-register-under{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;padding-top:17px;border-top:1px solid #e6edf1;color:#84959f;font-size:11px}
.unified-register-under a{color:#a76540;font-weight:900;text-decoration:none}
.unified-register-under a:hover{text-decoration:underline}
.unified-back-access{display:inline-flex;align-items:center;color:#557382;text-decoration:none;font-size:11px;font-weight:850;margin:0 0 12px}
.unified-back-access:hover{color:#264d60}
.unified-trust-row--centered{position:relative;z-index:2;color:#5e7785!important;background:rgba(255,255,255,.66);border:1px solid rgba(209,220,226,.75);padding:8px 12px;border-radius:999px;backdrop-filter:blur(10px)}

/* ADMIN · Centro de soporte */
.support-admin-grid{display:grid;grid-template-columns:minmax(300px,.74fr) minmax(0,1.26fr);gap:18px;align-items:start}
.support-ticket-list-panel,.support-conversation-panel{padding:0!important;overflow:hidden}
.support-ticket-list-panel .panel-heading,.support-conversation-panel .support-conversation-head{padding:22px 22px 16px}
.support-open-count{padding:7px 10px;border-radius:999px;background:#edf7f3;color:#3d7861;font-size:10px;font-weight:900}
.support-ticket-list{display:grid;border-top:1px solid #e8eef2;max-height:690px;overflow:auto}
.support-ticket-item{display:grid;gap:7px;padding:15px 18px;border-bottom:1px solid #edf1f4;text-decoration:none;color:#294554;background:#fff;transition:.15s ease}
.support-ticket-item:hover,.support-ticket-item.is-active{background:#f3f8fb}
.support-ticket-item.is-active{box-shadow:inset 3px 0 #2f7188}
.support-ticket-number{display:flex;align-items:center;justify-content:space-between;gap:10px}
.support-ticket-number b{font-size:10px;color:#547182;letter-spacing:.04em}
.support-ticket-number span{font-size:9px;color:#a06b47;background:#fff2e8;padding:4px 7px;border-radius:999px}
.support-ticket-item>strong{font-size:13px;color:#1f3746}
.support-ticket-item>small{font-size:10px;color:#83939e}
.support-ticket-item>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:10px}
.support-ticket-item time{font-size:9px;color:#9aa8b1}
.support-status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900}
.support-status--open{background:#fff0e6;color:#a5643f}.support-status--answered{background:#eaf5f8;color:#367087}.support-status--closed{background:#eef1f4;color:#6f7e88}
.support-conversation-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid #e7edf1}
.support-conversation-head h3{margin:5px 0;font-size:18px;color:#203b4b}.support-conversation-head p{margin:0;color:#8395a0;font-size:11px}
.support-thread{display:grid;gap:13px;padding:20px 22px;max-height:470px;overflow:auto;background:#f8fafb}
.support-message{max-width:84%;padding:13px 14px;border-radius:14px;background:#fff;border:1px solid #e1e8ed;box-shadow:0 7px 18px rgba(25,47,66,.04)}
.support-message.is-admin{margin-left:auto;background:#eaf3f7;border-color:#d4e5ec}
.support-message-meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px}.support-message-meta b{font-size:10px;color:#37596b}.support-message-meta time{font-size:9px;color:#93a1aa}
.support-message p{margin:0;color:#3e5665;font-size:12px;line-height:1.65}
.support-reply-form{display:grid;gap:10px;padding:18px 22px;border-top:1px solid #e7edf1}.support-reply-form label{display:grid;gap:8px;font-size:11px;font-weight:800;color:#365563}.support-reply-form textarea{resize:vertical;border:1px solid #d4e1e8;border-radius:11px;padding:12px;font:inherit;min-height:110px}.support-reply-form .btn{justify-self:end}
.support-status-form{display:flex;gap:10px;padding:0 22px 22px;justify-content:flex-end}.support-status-form select{min-height:40px;border:1px solid #d7e2e8;border-radius:9px;padding:8px 10px;background:#fff}
.support-empty-conversation{min-height:420px;display:grid;place-items:center;align-content:center;text-align:center;padding:30px;color:#7d919d}.support-empty-conversation span{color:#7096a9}.support-empty-conversation h3{margin:12px 0 5px;color:#294858}.support-empty-conversation p{max-width:380px;font-size:12px;line-height:1.7}

@media(max-width:900px){
  .support-admin-grid{grid-template-columns:1fr}
  .unified-login-video{opacity:.28}
}
@media(max-width:600px){
  .unified-login-main--centered{padding:18px 11px 26px!important}
  .unified-login-tools{margin-bottom:8px}
  .unified-brand-center{margin-bottom:12px!important}
  .unified-login-frame,.unified-login-frame.is-register{width:100%}
  .unified-login-card--centered,.unified-login-card--centered.is-register{padding:21px 16px 23px!important}
  .unified-form-heading--center h2{font-size:23px!important}
  .unified-register-under{flex-direction:column;gap:4px}
  .support-message{max-width:94%}
}
@media(prefers-reduced-motion:reduce){.unified-login-frame{animation:none}.unified-login-video{display:none}}


/* MEGA-COBROS PRO 8.7 · Solicitudes editables + Configuración desplegable */
.settings-nav-list{overflow:visible}
.settings-nav-group{width:100%}
.settings-nav-group>summary{list-style:none;cursor:pointer;user-select:none}
.settings-nav-group>summary::-webkit-details-marker{display:none}
.settings-nav-summary{display:flex!important;align-items:center!important;gap:12px!important;width:100%;box-sizing:border-box}
.settings-nav-chevron{margin-left:auto;font-size:15px;transition:transform .18s ease;color:#91a8b6}
.settings-nav-group[open] .settings-nav-chevron{transform:rotate(180deg)}
.settings-submenu{display:grid;gap:3px;margin:6px 0 2px 38px;padding:7px 0 7px 12px;border-left:1px solid rgba(154,184,199,.22)}
.settings-submenu a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:9px;text-decoration:none;color:#9cb0bc;font-size:10px;font-weight:750;line-height:1.25}
.settings-submenu a:hover{background:rgba(255,255,255,.06);color:#fff}
.settings-submenu svg{flex:none;opacity:.85}
.settings-anchor{scroll-margin-top:92px}
.settings-anchor:target{box-shadow:0 0 0 2px rgba(77,144,170,.16),0 16px 38px rgba(25,47,66,.06)}

.lead-edit-card{margin:0 0 18px;border:1px solid #dbe7ed;box-shadow:0 14px 34px rgba(25,47,66,.05)}
.lead-edit-card .panel-heading{border-bottom:1px solid #edf1f4}
.lead-edit-form{padding:20px 22px 22px}
.lead-edit-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.lead-edit-grid .field input,.lead-edit-grid .field select{width:100%;min-height:43px;box-sizing:border-box;border:1px solid #d6e2e8;background:#fbfdfe;border-radius:10px;padding:10px 12px;color:#254252;font:650 12px 'DM Sans',Manrope,sans-serif}
.lead-edit-grid .field input:focus,.lead-edit-grid .field select:focus{outline:none;border-color:#6c9cad;box-shadow:0 0 0 3px rgba(55,112,133,.09)}
.lead-edit-warning{margin-top:14px;padding:11px 13px;border:1px solid #f0dcc9;background:#fff8f1;color:#815737;border-radius:10px;font-size:11px;line-height:1.6}
.lead-edit-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.lead-actions-pro{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:210px}
.lead-actions-pro form{margin:0}
.btn-small{min-height:34px!important;padding:7px 10px!important;font-size:10px!important;border-radius:8px!important}
.btn-danger-soft{display:inline-flex;align-items:center;gap:6px;background:#fff3f4;color:#a94f5d;border:1px solid #f0ccd2;cursor:pointer;font-weight:800}
.btn-danger-soft:hover{background:#fde7ea;border-color:#e9b6bf}
.lead-delete-form{margin-left:auto!important}

@media(max-width:1050px){.lead-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
  .settings-submenu{margin-left:24px}
  .lead-edit-form{padding:16px}
  .lead-edit-grid{grid-template-columns:1fr}
  .lead-actions-pro{min-width:0}
  .lead-delete-form{margin-left:0!important}
}

/* MEGA-COBROS PRO 8.8 · sidebar con scroll invisible + próximos vencimientos */
@media(min-width:931px){
  .sidebar{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
    overscroll-behavior:contain;
  }
  .sidebar::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
}
.service-client-state--upcoming{background:#fff7e7;color:#9a6a2c}
.wa-auto-form{display:inline-flex;margin:0}
.wa-auto-form .wa-quick{min-height:38px}
.wa-auto-unavailable{display:inline-flex;align-items:center;padding:8px 10px;border:1px dashed #d6e0e6;border-radius:9px;color:#8a99a4;font-size:9px;font-weight:800}

/* MEGA-COBROS PRO 9.0 · sidebar desplazable real, estados de boletas y numeración */
@media(min-width:931px){
  .sidebar{
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    min-height:0!important;
    box-sizing:border-box!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:none!important;
    scrollbar-color:transparent transparent!important;
    -ms-overflow-style:none!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch;
  }
  .sidebar::-webkit-scrollbar{width:0!important;height:0!important;background:transparent!important;display:none!important}
  .sidebar>.brand,.sidebar>.nav-caption,.sidebar>.nav-list,.sidebar>.sidebar-languages,.sidebar>.sidebar-foot{flex:0 0 auto!important}
  .sidebar-foot{margin-top:14px!important;padding-bottom:10px!important}
}
.badge.expired-paid{color:#8a5b22;background:#fff4df;border:1px solid #f0dfbd}
.badge.warn{color:#9b681f;background:#fff3df}
.boleta-reset-form{display:inline-flex;margin:0}
.boleta-reset-form .btn{white-space:normal;text-align:center}
.document-number{font-weight:900}
#invoicesTable .row-subtitle{max-width:300px}
@media(max-width:650px){
  .filters{scrollbar-width:none;-ms-overflow-style:none}
  .filters::-webkit-scrollbar{display:none;width:0;height:0}
}

/* MEGA-COBROS PRO 9.1 · configuración por secciones + estado real de cobertura */
.settings-submenu a.is-active{background:rgba(255,255,255,.10);color:#fff;border-left:2px solid #79b5cb}
.settings-single-wrap{max-width:980px;margin:0 auto 28px}
.settings-form-single{display:block!important}
.settings-panel-single{width:100%;margin:0!important;box-sizing:border-box}
.settings-savebar-single{margin-top:16px;border-radius:14px;position:sticky;bottom:14px;z-index:20}
.settings-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.settings-actions-grid form,.settings-actions-grid .btn{width:100%}
.setting-ok{display:block;margin-top:6px;color:#4e7567;font-weight:800}
.coverage-paid-until{margin-top:5px!important;color:#657d8c!important;font-weight:700!important}
.service-detail-row[data-service-state="overdue"] .coverage-paid-until{color:#a55460!important}
.service-detail-row[data-service-state="upcoming"] .coverage-paid-until{color:#9b6a3d!important}
@media(max-width:760px){.settings-single-wrap{max-width:100%}.settings-actions-grid{grid-template-columns:1fr}.settings-savebar-single{bottom:8px}}


/* PRO 9.4 · acceso del cliente */
.client-password-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:6px}
.client-password-tools .password-field-wrap{min-width:0}
.client-password-tools .btn-mini{min-height:44px;padding:10px 13px;white-space:nowrap}
@media(max-width:640px){.client-password-tools{grid-template-columns:1fr}.client-password-tools .btn-mini{width:100%}}
.service-suspend-btn{border:1px solid #efc7cc;background:#fff3f4;color:#a74756;border-radius:10px;padding:9px 11px;font-weight:800;font-size:10px;cursor:pointer;white-space:nowrap}
.service-suspend-btn:hover{background:#ffe8eb}

/* MEGA-COBROS PRO 10.1 · soporte, tipografía ligera y responsive */
body,.app-shell,.content,.panel,.data-table,.modal,.toast{font-family:'DM Sans','Segoe UI',Arial,sans-serif!important}
.page-intro h1,.dash-head h1,.panel-heading h3,.renewal-heading h3,.settings-title h3,.modal-head h2,.support-conversation-head h3{
  font-family:'Autonomous','DM Sans','Segoe UI',sans-serif!important;
  font-weight:400!important;
  letter-spacing:.005em!important;
}
.nav-link,.btn,.field label,.data-table th,.status,.badge{font-weight:700!important}
.data-table td,.panel p,.page-intro p{font-weight:400!important}

/* El total mensual deja de ser un bloque oscuro pesado. */
.income-panel{
  background:#fff!important;
  border:1px solid #dfe7ed!important;
  color:#213b49!important;
  box-shadow:0 12px 30px rgba(25,47,66,.055)!important;
}
.income-panel .overline{color:#6f8795!important}
.income-panel h3{color:#203746!important;font-weight:500!important}
.income-number{color:#1d5267!important;background:transparent!important;font-size:34px!important;font-weight:700!important;letter-spacing:-.035em!important}
.income-foot{color:#66808e!important}
.income-dollar{color:#526f80!important}

/* Soporte administrador */
.support-admin-grid{grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr)!important;gap:16px!important}
.support-ticket-list-panel,.support-conversation-panel{overflow:hidden}
.support-ticket-list{max-height:620px;overflow:auto;scrollbar-width:none}.support-ticket-list::-webkit-scrollbar{display:none}
.support-ticket-item{padding:14px 16px!important}
.support-ticket-item>strong{font-size:12px!important;font-weight:700!important}
.support-ticket-item>small{font-size:10px!important;font-weight:400!important}
.support-conversation-head{padding:20px 22px!important}
.support-conversation-head h3{font-size:17px!important}
.support-conversation-head p{font-weight:400!important}
.support-thread{scrollbar-width:none}.support-thread::-webkit-scrollbar{display:none}
.support-message p{font-weight:400!important}
.support-reply-form textarea{font-family:'DM Sans','Segoe UI',sans-serif!important;font-weight:400!important}
.support-admin-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 22px 22px;flex-wrap:wrap}
.support-admin-actions .support-status-form{padding:0;margin:0}
.support-delete-form{margin:0}
.support-delete-form .btn{min-height:40px}

/* Sidebar: desplaza sin mostrar barra. */
@media(min-width:931px){
  .sidebar{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none!important}
  .sidebar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
}

/* Tablet y móvil: conserva la jerarquía del escritorio sin desbordes. */
@media(max-width:980px){
  .support-admin-grid{grid-template-columns:1fr!important}
  .support-ticket-list{max-height:none}
  .support-thread{max-height:420px}
  .income-number{font-size:30px!important}
}
@media(max-width:720px){
  .page-intro h1,.dash-head h1{font-size:20px!important}
  .support-conversation-head{flex-direction:column;align-items:flex-start}
  .support-message{max-width:94%!important}
  .support-admin-actions{align-items:stretch;flex-direction:column}
  .support-admin-actions form,.support-admin-actions .btn,.support-status-form select{width:100%}
  .support-status-form{display:grid!important;grid-template-columns:1fr!important;width:100%}
}


/* SOPORTE 10.2 · idempotencia visual y limpieza de pruebas */
.support-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.support-heading-actions form{margin:0}
.btn-small{min-height:34px!important;padding:7px 11px!important;font-size:11px!important}
.support-ticket-item strong,.support-conversation-head h3,.support-message p{font-weight:600!important}
@media(max-width:760px){.support-heading-actions{width:100%;justify-content:flex-start;margin-top:10px}.support-heading-actions .btn{width:100%}}


/* MEGA-COBROS PRO 10.7 · métodos de pago */
.payment-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.payment-method-card{border:1px solid #dce6eb;background:#fbfdfe;border-radius:16px;padding:18px;min-width:0}
.payment-method-card--active{border-color:#cfe6dc;background:#f8fcfa}
.payment-method-card--dev{border-style:dashed;background:#fafbfc}
.payment-method-head{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center}
.payment-method-logo{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#295a6b;color:#fff;font-weight:900;font-size:18px}
.payment-method-card--active .payment-method-logo{background:#6d2878}
.payment-method-head b{display:block;color:#233d4b;font-size:13px}.payment-method-head small{display:block;color:#8797a1;font-size:10px;margin-top:2px}
.payment-method-status{font-size:9px;font-weight:900;letter-spacing:.08em;border-radius:999px;padding:7px 9px;white-space:nowrap}.payment-method-status.is-active{background:#e4f4ec;color:#277050}.payment-method-status.is-dev{background:#eef1f4;color:#657884}
.payment-method-card p{margin:14px 0 0;color:#6e818c;font-size:11px;line-height:1.65}
@media(max-width:720px){.payment-method-grid{grid-template-columns:1fr}.payment-method-head{grid-template-columns:42px minmax(0,1fr)}.payment-method-status{grid-column:1/-1;justify-self:start}}
