:root{
  --ink:#0D1B3D;
  --muted:#4B5563;
  --faint:#9CA3AF;
  --brand:#1E3A8A;
  --brand-dark:#0D1B3D;
  --brand-ink:#0D1B3D;
  --brand-soft:#E8ECF7;
  --gold:#F28705;
  --gold-soft:#FDECD3;
  --success:#16A34A;
  --success-soft:#E3F5E9;
  --bg:#F3F4F6;
  --surface:#FFFFFF;
  --line:#E5E7EB;
  --danger-bg:#FDEAEA;
  --danger-ink:#DC2626;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Inter",sans-serif;-webkit-font-smoothing:antialiased}
h1,h2{font-family:"Poppins",sans-serif;font-weight:700}
button{font-family:inherit}

/* ---------- shared bits ---------- */
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{display:block;width:32px;height:auto}
.brand-mark--sm{width:26px}
.brand-mark-badge{display:grid;place-items:center;background:#fff;border-radius:10px;padding:5px}
.brand-word{font-family:"Poppins",sans-serif;font-weight:700;font-size:18px;letter-spacing:-.01em;color:#fff}
.brand-word b{color:var(--gold);font-weight:700}
.brand-word small{font-weight:500;color:rgba(255,255,255,.65);font-size:12px;margin-left:2px}
.brand-word--dark{color:var(--brand-ink)}
.brand-word--dark b{color:var(--gold)}
.brand-word--dark small{color:var(--faint)}

.password-wrap{display:block;position:relative}
.password-wrap input{padding-right:56px}
.ghost-toggle,.password-wrap button{position:absolute;right:6px;top:6px;height:39px;border:0;background:transparent;color:var(--brand);cursor:pointer;font-weight:700;font-size:12px;padding:0 10px}

/* ================= LOGIN ================= */
.login{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}
.login-visual{position:relative;overflow:hidden;background:linear-gradient(165deg,#0D1B3D 0%,#152C61 55%,#1E3A8A 100%);color:#fff;padding:56px 60px;display:flex;flex-direction:column;justify-content:space-between}
.login-ring{position:absolute;right:-160px;top:-160px;width:520px;height:520px;border-radius:50%;border:1px solid rgba(255,255,255,.14)}
.login-ring::before,.login-ring::after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.1)}
.login-ring::before{inset:60px}
.login-ring::after{inset:130px}
.login-visual-inner{position:relative;max-width:460px}
.login-visual-inner h1{font:700 clamp(30px,3.4vw,40px)/1.18 "Poppins";letter-spacing:-.02em;margin:40px 0 18px;color:#fff}
.login-visual-inner p{color:rgba(255,255,255,.72);line-height:1.7;font-size:15px;margin:0 0 30px}
.login-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px}
.login-points li{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.88);font-size:13.5px;font-weight:500}
.login-points li span{color:var(--gold);font-size:10px}
.login-visual-foot{position:relative;font-size:11.5px;color:rgba(255,255,255,.5)}

.login-panel{display:flex;align-items:center;justify-content:center;padding:40px}
.login-form{width:100%;max-width:380px}
.login-kicker{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:700;color:var(--brand);margin:0 0 14px}
.login-form h2{font:700 32px/1.1 "Poppins";margin:0 0 8px;letter-spacing:-.02em}
.login-sub{color:var(--muted);margin:0 0 30px;font-size:14px}
.login-form label{display:block;font-size:12px;font-weight:700;color:var(--ink);margin:16px 0 7px}
.login-form input[type=email],.login-form input[type=password]{width:100%;height:48px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:0 15px;font:14px inherit;color:var(--ink);outline:none;transition:.15s}
.login-form input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(30,58,138,.14)}
.login-row{display:flex;align-items:center;justify-content:space-between;margin:18px 0 26px;font-size:12.5px}
.remember{display:flex;align-items:center;gap:7px;font-weight:500;color:var(--muted);margin:0;text-transform:none;letter-spacing:0}
.remember input{width:auto;height:auto}
.login-row a{color:var(--brand);text-decoration:none;font-weight:600}
.login-hint{text-align:center;color:var(--faint);font-size:12px;margin:16px 0 0;line-height:1.5}
.login-divider{display:flex;align-items:center;gap:10px;margin:18px 0;color:var(--faint);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.login-divider::before,.login-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.google-auth-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:48px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:700 13.5px inherit;text-decoration:none;transition:.15s}
.google-auth-button:hover{border-color:var(--line-strong);box-shadow:0 4px 12px rgba(13,27,61,.08)}

/* ================= APP ================= */
.app{min-height:100vh}
.secure{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}
.secure span{width:7px;height:7px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px var(--success-soft)}

.account-menu{position:relative}
.account-pill{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--surface);border-radius:30px;padding:6px 14px 6px 6px;cursor:pointer;font:600 13px inherit;color:var(--ink);width:100%}
.avatar{display:grid;overflow:hidden;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--brand);color:#fff;font-size:12px;font-weight:800}
.avatar img,.liquid-account-short img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;border-radius:inherit}
.chev{color:var(--faint);font-size:11px;margin-left:auto}
.account-dropdown{position:absolute;right:0;top:calc(100% + 10px);background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 40px rgba(14,27,46,.12);padding:14px;min-width:210px;z-index:5}
.account-dropdown--up{top:auto;bottom:calc(100% + 10px);left:0;right:0}
.account-email{margin:0 0 10px;font-size:12px;color:var(--muted)}
.account-dropdown button{width:100%;height:38px;border:1px solid var(--line);background:var(--bg);border-radius:8px;font-weight:700;font-size:12.5px;color:var(--ink);cursor:pointer}
.account-dropdown button:hover{background:var(--danger-bg);color:var(--danger-ink);border-color:transparent}

/* ---------- dashboard shell ---------- */
.shell{display:grid;grid-template-columns:264px 1fr;min-height:100vh}
.sidebar{background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:22px 16px;position:sticky;top:0;height:100vh}
.sidebar-brand{display:flex;align-items:center;justify-content:center;padding:10px 6px 24px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.brand-mark-big{width:100%;max-width:220px;height:auto;display:block}
.brand-mark-compact{display:none;width:32px;height:auto}
.sidebar-nav{display:flex;flex-direction:column;gap:2px;overflow-y:auto;flex:1}
.nav-group-label{text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:700;color:var(--faint);margin:16px 10px 6px}
.nav-group-label:first-child{margin-top:4px}
.nav-item{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;text-align:left;padding:10px 10px;border-radius:10px;color:var(--muted);font:700 13px inherit;cursor:pointer;transition:.15s}
.nav-item:hover{background:var(--bg);color:var(--ink)}
.nav-item.active{background:var(--brand);color:#fff}
.nav-icon{display:inline-grid;place-items:center;width:20px;font-size:15px;flex:none}
.nav-label{flex:1}
.nav-soon-chip{font-size:8.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--faint);background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:3px 7px;flex:none}
.nav-item[data-soon]{color:var(--faint)}
.nav-item[data-soon]:hover{color:var(--muted)}
.account-menu--sidebar{margin-top:10px;padding-top:14px;border-top:1px solid var(--line)}

.shell-main{min-width:0}
.shell-topbar{display:flex;justify-content:flex-end;padding:18px 40px 0}

.dash{padding:32px 40px 60px;max-width:1220px}

.welcome-banner{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:32px;background:linear-gradient(150deg,#0D1B3D 0%,#152C61 60%,#1E3A8A 100%);border-radius:22px;padding:36px 44px;margin-bottom:32px;box-shadow:0 24px 50px rgba(13,27,61,.22)}
.welcome-ring{position:absolute;right:-120px;top:-120px;width:340px;height:340px;border-radius:50%;border:1px solid rgba(255,255,255,.14)}
.welcome-ring::before{content:"";position:absolute;inset:44px;border-radius:50%;border:1px solid rgba(255,255,255,.1)}
.welcome-text{position:relative;max-width:520px}
.welcome-kicker{text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:700;color:var(--gold);margin:0 0 10px}
.welcome-text h1{font:700 32px "Poppins";letter-spacing:-.02em;margin:0 0 10px;color:#fff}
.welcome-text .dash-sub{color:rgba(255,255,255,.72);margin:0;font-size:14.5px}
.welcome-stats{position:relative;display:flex;gap:28px;flex:none}
.welcome-stat{text-align:right;color:#fff}
.welcome-stat b{display:block;font:700 22px "Poppins";letter-spacing:-.01em}
.welcome-stat small{color:rgba(255,255,255,.6);font-size:11px}

.dash-search{display:flex;align-items:center;gap:10px;height:50px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0 16px;max-width:460px;margin-bottom:36px;color:var(--faint)}
.dash-search input{border:0;height:100%;padding:0;background:transparent}
.dash-search input:focus{box-shadow:none}

.dash-section-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 16px}
.dash-section-head--soon{margin-top:44px}
.dash-section-count{font-size:12px;color:var(--faint);font-weight:600}

.dash-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.action-card{position:relative;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:22px;cursor:pointer;display:flex;flex-direction:column;gap:10px;transition:.18s;font:inherit;color:var(--ink)}
.action-card:hover{border-color:#C7D3EE;box-shadow:0 16px 32px rgba(14,27,46,.08);transform:translateY(-2px)}
.action-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--brand-soft);color:var(--brand);font-size:19px}
.action-card b{font-size:14.5px;font-weight:800}
.action-card small{color:var(--muted);font-size:12.5px;line-height:1.5}
.action-go{position:absolute;right:18px;top:22px;color:var(--faint);font-size:15px;opacity:0;transform:translateX(-4px);transition:.18s}
.action-card:hover .action-go{opacity:1;transform:translateX(0);color:var(--brand)}

.dash-grid--soon{grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:14px}
.action-card--soon{padding:18px;border-style:dashed;background:#FAFBFC}
.action-card--soon .action-icon{background:var(--bg);color:var(--faint)}
.action-card--soon:hover{transform:none;box-shadow:none;border-color:#C7D3EE}
.soon-badge{position:absolute;top:14px;right:14px;font-style:normal;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:3px 8px}

.consult-view{padding:24px 40px 60px;max-width:1220px}
.back-link{border:0;background:transparent;color:var(--brand);font:700 13px inherit;cursor:pointer;margin:0 0 18px;padding:0}

.consult-shell{display:grid;grid-template-columns:360px 1fr;gap:0;border-radius:22px;overflow:hidden;box-shadow:0 24px 50px rgba(14,27,46,.08)}

.consult-info{position:relative;overflow:hidden;background:linear-gradient(165deg,#0D1B3D 0%,#152C61 55%,#1E3A8A 100%);color:#fff;padding:44px 38px;display:flex;flex-direction:column;justify-content:space-between}
.consult-info-ring{position:absolute;right:-130px;bottom:-130px;width:340px;height:340px;border-radius:50%;border:1px solid rgba(255,255,255,.12)}
.consult-info-ring::before{content:"";position:absolute;inset:40px;border-radius:50%;border:1px solid rgba(255,255,255,.09)}
.consult-info-inner{position:relative}
.consult-info-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:15px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);font-size:26px;margin-bottom:22px}
.consult-info-kicker{text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:700;color:var(--gold);margin:0 0 10px}
.consult-info-inner h2{font:700 26px/1.25 "Poppins";margin:0 0 12px;letter-spacing:-.01em;color:#fff}
.consult-info-inner p{color:rgba(255,255,255,.72);line-height:1.65;font-size:13.5px;margin:0 0 26px}
.consult-info-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.consult-info-steps li{display:flex;align-items:center;gap:12px;color:rgba(255,255,255,.9);font-size:13px;font-weight:500}
.consult-info-steps li span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.14);color:var(--gold);font-size:11px;font-weight:800;flex:none}
.consult-info-trust{position:relative;display:flex;gap:10px;color:rgba(255,255,255,.65);font-size:12px;line-height:1.5;margin-top:26px}
.consult-info-trust span{color:var(--gold);flex:none}

.assistant-bar{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:30px;box-shadow:0 18px 40px rgba(14,27,46,.14);padding:8px 8px 8px 18px;width:min(560px,90vw);z-index:20}
.assistant-bar input{border:0;flex:1;height:38px;padding:0;background:transparent}
.assistant-bar input:focus{box-shadow:none}
.assistant-bar #assistantSend{border:0;background:var(--brand);color:#fff;height:38px;padding:0 16px;border-radius:20px;font:700 12.5px inherit;cursor:pointer}
.assistant-bar #assistantClose{height:38px;padding:0 14px}

.toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(20px);background:var(--brand-ink);color:#fff;padding:12px 20px;border-radius:10px;font-size:13px;font-weight:600;box-shadow:0 18px 40px rgba(14,27,46,.25);opacity:0;pointer-events:none;transition:.2s;z-index:30}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

.section-label{text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:700;color:var(--brand)}
.dash .section-label{color:var(--faint);margin:0 0 16px}

.consult-card{background:var(--surface);padding:44px 48px 50px}
.card-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin:0 0 26px}
.card-heading h2{font:700 26px/1.2 "Poppins";margin:0 0 8px;letter-spacing:-.01em}
.card-heading p{margin:0;color:var(--muted);font-size:13px}
.pill{border:1px solid #C7D3EE;color:var(--brand);border-radius:20px;padding:6px 10px;font-size:10px;font-weight:700;letter-spacing:.08em}

form{max-width:560px}
label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;margin:18px 0 8px;color:var(--ink)}
input,select{width:100%;height:49px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:0 15px;color:var(--ink);font:14px "Inter",inherit;outline:none;transition:.15s}
input:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(30,58,138,.12)}
.extra-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}

.saved-rfc-row{max-width:560px;display:flex;align-items:flex-end;gap:12px;margin-bottom:6px}
.saved-rfc-row label{flex:1;margin:0}
.saved-rfc-row select{height:44px}
.saved-rfc-row .ghost-toggle{position:static;height:44px;padding:0 4px;white-space:nowrap}

.remember-rfc{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:500;color:var(--muted);text-transform:none;letter-spacing:0;margin:14px 0 0}
.remember-rfc input{width:auto;height:auto}
.privacy{display:flex;gap:13px;background:var(--success-soft);border-radius:11px;padding:14px 16px;margin:22px 0;color:#0F6B31}
.privacy span{font-size:12px}
.privacy p{font-size:11.5px;line-height:1.55;margin:0}
.primary{width:100%;height:52px;border:0;border-radius:10px;background:var(--ink);color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 20px;font:700 13.5px inherit;cursor:pointer;box-shadow:0 10px 22px rgba(13,27,61,.22);transition:.15s}
.primary:hover{transform:translateY(-1px);background:var(--brand)}
.primary:disabled{opacity:.6;cursor:wait;transform:none}
.status{display:none;max-width:560px;margin-top:16px;padding:14px;border-radius:10px;font-size:13px;line-height:1.5}
.status.show{display:block}
.status.error{background:var(--danger-bg);color:var(--danger-ink)}
.status.success{background:var(--success-soft);color:#0F6B31}
.status pre{white-space:pre-wrap;max-height:220px;overflow:auto;font-size:11px}
.status a{display:inline-block;color:inherit;font-weight:700;margin-top:8px}

/* ================= EMPRESAS ================= */
.empresas-sub{margin:6px 0 0;color:var(--muted);font-size:13px;max-width:480px}
.primary--inline{width:auto;padding:0 20px;flex:none;gap:10px}
.dash-section-head{align-items:flex-start}

.empresas-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:1px dashed var(--line);border-radius:16px;padding:32px;background:#FAFBFC;margin-bottom:18px}
.empresas-empty b{font-size:14.5px}
.empresas-empty small{color:var(--muted);font-size:12.5px}

.company-card{position:relative;border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:10px}
.company-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.company-card b{font-size:14.5px;font-weight:800;line-height:1.3}
.company-card .company-rfc{color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.03em}
.company-badge{flex:none;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;border-radius:20px;padding:4px 9px}
.company-badge--ok{background:var(--success-soft);color:#0F6B31}
.company-badge--warn{background:var(--danger-bg);color:var(--danger-ink)}
.company-meta{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 4px}
.company-meta span{font-size:11px;color:var(--muted);background:var(--bg);border-radius:20px;padding:4px 10px}
.company-actions{display:flex;gap:10px;margin-top:auto;padding-top:6px}
.company-actions button{flex:1;height:38px;border-radius:8px;border:1px solid var(--line);background:var(--surface);font:700 12px inherit;color:var(--ink);cursor:pointer}
.company-actions button:hover{background:var(--bg)}
.company-actions .danger:hover{background:var(--danger-bg);color:var(--danger-ink);border-color:transparent}

.file-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
input[type=file]{height:auto;padding:10px 12px;border:1px dashed var(--line);background:var(--bg);font-size:12.5px;cursor:pointer}
.cert-parsed{display:none;gap:8px;background:var(--brand-soft);border-radius:11px;padding:14px 16px;margin:18px 0 4px;color:var(--brand-dark);font-size:12.5px;line-height:1.6}
.cert-parsed.show{display:block}
.cert-parsed b{display:block;margin-bottom:2px}

@media(max-width:940px){
  .login{grid-template-columns:1fr}
  .login-visual{display:none}
  .shell{grid-template-columns:76px 1fr}
  .sidebar{padding:22px 10px}
  .sidebar-brand{padding:6px 0 20px}
  .brand-mark-big{display:none}
  .brand-mark-compact{display:block;margin:0 auto}
  .nav-group-label{display:none}
  .nav-item{justify-content:center;padding:12px}
  .nav-item .nav-label,.nav-item .nav-soon-chip{display:none}
  .account-pill{justify-content:center;padding:8px}
  .account-pill .chev,.account-pill{font-size:0}
  .avatar{font-size:12px}
  .consult-shell{grid-template-columns:1fr}
  .consult-info{display:none}
}
@media(max-width:800px){
  .dash,.consult-view,.shell-topbar{padding-left:20px;padding-right:20px}
  .welcome-banner{flex-direction:column;align-items:flex-start;padding:28px}
  .welcome-stats{gap:20px}
  .consult-card{padding:28px 20px}
  .card-heading h2{font-size:22px}
  .secure{display:none}
  .assistant-bar{width:94vw}
  .file-fields,.extra-fields{grid-template-columns:1fr}
  .dash-section-head{flex-direction:column;gap:14px}
  .primary--inline{width:100%;justify-content:center}
}

/* ================= REFINAMIENTO VISUAL 2026 =================
   Una sola gramática para superficies, ritmo y profundidad. */
:root{
  --bg:#F5F6F8;
  --surface:#FFFFFF;
  --surface-subtle:#F9FAFB;
  --line:#E6E9EF;
  --line-strong:#D9DEE8;
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;
  --shadow-sm:0 1px 2px rgba(13,27,61,.03),0 6px 18px rgba(13,27,61,.035);
  --shadow-md:0 18px 50px rgba(13,27,61,.08);
}

body{background:var(--bg)}
.shell{grid-template-columns:272px minmax(0,1fr)}
.shell-main{background:linear-gradient(180deg,#F8F9FB 0,#F5F6F8 360px);min-height:100vh}

/* Navegación: bloque visual propio, menos ruido y mejor ritmo. */
.sidebar{
  background:#0D1B3D;
  border-right:0;
  padding:20px 14px 16px;
  box-shadow:10px 0 35px rgba(13,27,61,.07);
  z-index:10;
}
.sidebar-brand{min-height:72px;padding:5px 12px 20px;margin:0 4px 10px;border-bottom-color:rgba(255,255,255,.09)}
.brand-mark-big{filter:brightness(0) invert(1);opacity:.96}
.sidebar-nav{gap:3px;padding:2px 4px 10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
.nav-group-label{color:rgba(255,255,255,.38);margin:20px 12px 7px;font-size:9px;letter-spacing:.14em}
.nav-item{min-height:42px;padding:10px 11px;border-radius:11px;color:rgba(255,255,255,.68);font-size:12.5px;font-weight:600}
.nav-item:hover{background:rgba(255,255,255,.07);color:#fff}
.nav-item.active{background:#fff;color:var(--brand-dark);box-shadow:0 8px 22px rgba(0,0,0,.14)}
.nav-item.active .nav-icon{color:var(--gold)}
.nav-item[data-soon],.nav-item[data-soon]:hover{color:rgba(255,255,255,.4)}
.nav-soon-chip{color:rgba(255,255,255,.5);background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.08)}
.account-menu--sidebar{border-top-color:rgba(255,255,255,.1);padding:14px 4px 0}
.account-pill{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1);color:#fff;border-radius:12px;padding:7px 10px 7px 7px}
.account-pill:hover{background:rgba(255,255,255,.11)}
.avatar{background:var(--gold);color:#fff}
.chev{color:rgba(255,255,255,.5)}

/* El contenido comparte ancho, ejes y separación vertical. */
.shell-topbar{max-width:1280px;margin:0 auto;padding:22px 40px 0}
.dash,.consult-view{width:min(100%,1280px);max-width:none;margin:0 auto;padding-left:40px;padding-right:40px}
.dash{padding-top:26px}
.consult-view{padding-top:22px}

.welcome-banner{
  min-height:196px;
  border-radius:var(--radius-lg);
  padding:38px 42px;
  margin-bottom:24px;
  box-shadow:0 18px 45px rgba(13,27,61,.16);
  background:linear-gradient(125deg,#0D1B3D 0%,#142B5B 66%,#1E3A8A 100%);
}
.welcome-text h1{font-size:30px}
.welcome-stats{gap:0;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(255,255,255,.055);backdrop-filter:blur(8px)}
.welcome-stat{min-width:108px;padding:18px 16px;text-align:left;border-right:1px solid rgba(255,255,255,.1)}
.welcome-stat:last-child{border-right:0}
.welcome-stat b{font-size:19px;margin-bottom:2px}
.welcome-stat small{display:block;line-height:1.3}

.dash-search{max-width:none;width:100%;height:48px;margin:0 0 32px;border-color:var(--line);border-radius:14px;box-shadow:var(--shadow-sm)}
.dash-section-head{min-height:28px;align-items:center;margin-bottom:14px}
.dash .section-label{margin:0;color:#68748A}
.dash-section-count{padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.7);font-size:10.5px}

/* Tarjetas iguales: icono, texto y acción siempre ocupan el mismo eje. */
.dash-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.action-card{
  min-height:176px;
  border-color:var(--line);
  border-radius:var(--radius-md);
  padding:20px;
  gap:7px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.action-card::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .22s ease}
.action-card:hover{border-color:var(--line-strong);box-shadow:0 16px 34px rgba(13,27,61,.08);transform:translateY(-3px)}
.action-card:hover::after{transform:scaleX(1)}
.action-icon{width:40px;height:40px;border-radius:12px;margin-bottom:7px}
.action-card b{font-size:14px;line-height:1.35}
.action-card small{max-width:90%;font-size:12px;line-height:1.55}
.action-go{opacity:1;top:22px;right:20px;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--surface-subtle);transform:none}

.dash-section-head--soon{margin-top:40px}
.dash-grid--soon{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--line);border-radius:20px;background:#EEF1F5}
.action-card--soon{min-height:160px;padding:18px;background:rgba(255,255,255,.68);border-style:solid;box-shadow:none}
.action-card--soon::after{display:none}
.action-card--soon:hover{background:#fff;box-shadow:var(--shadow-sm);transform:translateY(-1px)}

/* Consulta: dos tarjetas hermanas, no un contenedor partido. */
.back-link{display:inline-flex;align-items:center;min-height:36px;margin-bottom:14px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);box-shadow:var(--shadow-sm)}
.back-link:hover{color:var(--brand);border-color:var(--line-strong)}
.consult-shell{grid-template-columns:minmax(300px,350px) minmax(0,1fr);gap:16px;border-radius:0;overflow:visible;box-shadow:none;align-items:stretch}
.consult-info,.consult-card{border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-md)}
.consult-info{padding:38px 32px;min-height:610px;background:linear-gradient(150deg,#0D1B3D 0%,#162F64 100%);border-color:transparent}
.consult-info-icon{width:50px;height:50px;border-radius:14px;font-size:22px}
.consult-info-inner h2{font-size:23px}
.consult-card{padding:38px 44px 44px;background:var(--surface)}
.card-heading{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.card-heading h2{font-size:23px}
.pill{background:var(--brand-soft);border:0;padding:7px 11px}
.consult-card form,.consult-card .status,.saved-rfc-row{max-width:600px}

label{margin-top:17px}
input,select{height:50px;border-color:var(--line-strong);border-radius:11px;background:#FBFCFD}
input:hover,select:hover{background:#fff;border-color:#C8CFDA}
.saved-rfc-row{padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-subtle);margin-bottom:16px}
.privacy{border:1px solid #CFE8D8;border-radius:13px;margin:22px 0;padding:14px 16px}
.primary{height:54px;border-radius:12px;box-shadow:0 10px 22px rgba(13,27,61,.16)}
.status{border:1px solid transparent;border-radius:13px}

/* Empresas usa exactamente la misma tarjeta y elevación que el dashboard. */
.empresas-empty{border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm)}
.company-card{min-height:210px;border-color:var(--line);border-radius:var(--radius-md);padding:20px;box-shadow:var(--shadow-sm);transition:.18s ease}
.company-card:hover{border-color:var(--line-strong);box-shadow:0 14px 30px rgba(13,27,61,.07);transform:translateY(-2px)}
.company-actions button{height:40px;border-radius:10px}
.cert-parsed,.privacy{box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}

@media(max-width:1120px){
  .dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash-grid--soon{grid-template-columns:repeat(3,minmax(0,1fr))}
  .welcome-stats{display:none}
}

@media(max-width:940px){
  .shell{grid-template-columns:78px minmax(0,1fr)}
  .sidebar{padding-left:10px;padding-right:10px}
  .sidebar-brand{margin:0;padding-left:0;padding-right:0}
  .brand-mark-compact{filter:brightness(0) invert(1)}
  .nav-item{min-height:44px}
  .consult-info{display:none}
  .consult-shell{grid-template-columns:1fr}
}

@media(max-width:720px){
  .shell{display:block}
  .sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;height:68px;padding:8px 10px;background:#0D1B3D;z-index:50}
  .sidebar-brand,.nav-group-label,.account-menu--sidebar,.nav-item[data-soon],.nav-item[data-view="empresas"]{display:none}
  .sidebar-nav{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;padding:0;overflow:visible}
  .nav-item{display:flex;justify-content:center;min-width:0;min-height:52px;padding:8px;border-radius:10px}
  .nav-item .nav-label{display:none}
  .nav-icon{font-size:17px}
  .shell-main{padding-bottom:82px}
  .shell-topbar{padding:16px 16px 0}
  .dash,.consult-view{padding-left:16px;padding-right:16px}
  .welcome-banner{min-height:auto;padding:28px 24px;border-radius:20px}
  .welcome-text h1{font-size:25px}
  .dash-grid,.dash-grid--soon{grid-template-columns:1fr}
  .dash-grid--soon{padding:12px}
  .action-card,.action-card--soon{min-height:142px}
  .consult-card{padding:26px 20px 30px;border-radius:20px}
  .card-heading{gap:12px}
  .card-heading h2{font-size:20px}
  .extra-fields,.file-fields{grid-template-columns:1fr}
}

/* ================= MÓDULO LIMPIO: GUÍA LATERAL ================= */
/* La guía vive en el sidebar; el contenido conserva solo contexto mínimo. */
.module-menu-item{color:rgba(255,255,255,.58)}
.module-menu-item.active{background:rgba(255,255,255,.07)}
.module-menu-item.active>span{border-color:var(--gold);background:var(--gold);color:#fff}
.module-menu-item:not(.active)>span{color:rgba(255,255,255,.62)}

.consult-info{
  min-height:0;
  padding:17px 20px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#FAFBFD;
  color:var(--ink);
  box-shadow:none;
}
.consult-info-ring,.consult-info-steps,.consult-info-trust{display:none}
.consult-info-inner{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:12px;
  align-items:center;
}
.consult-info-icon{
  grid-column:1;
  grid-row:1/3;
  width:38px;
  height:38px;
  margin:0;
  border:0;
  border-radius:11px;
  background:var(--brand-soft);
  color:var(--brand);
  font-size:17px;
}
.consult-info-kicker{display:none}
.consult-info-inner h2{
  grid-column:2;
  grid-row:1;
  margin:0 0 2px;
  color:var(--ink);
  font:700 13px/1.35 "Poppins",sans-serif;
}
.consult-info-inner>p:not(.consult-info-kicker){
  grid-column:2;
  grid-row:2;
  margin:0;
  padding:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}
.consult-shell{gap:12px}
.consult-card{padding-top:32px}

@media(max-width:940px){
  .consult-info{display:block;padding:14px 16px}
  .consult-info-inner{grid-template-columns:36px minmax(0,1fr);column-gap:11px}
  .consult-info-icon{width:36px;height:36px}
  .consult-info-inner h2{font-size:12.5px}
}

@media(max-width:720px){
  .consult-info{padding:13px 14px;border-radius:13px}
  .consult-info-inner{grid-template-columns:34px minmax(0,1fr);column-gap:10px}
  .consult-info-icon{width:34px;height:34px;font-size:15px}
  .consult-info-inner h2{font-size:12px}
  .consult-info-inner>p:not(.consult-info-kicker){font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ================= SIDEBAR CONTEXTUAL POR MÓDULO ================= */
.module-nav{display:flex;flex:1;min-height:0;flex-direction:column;padding:2px 4px 10px;color:#fff}
.module-back{
  width:100%;
  min-height:43px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:11px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font:600 12px "Inter",sans-serif;
  cursor:pointer;
  transition:.16s ease;
}
.module-back:hover{background:#fff;color:var(--brand-dark);border-color:#fff}
.module-back span:first-child{color:var(--gold);font-size:16px}
.module-identity{padding:28px 10px 24px;border-bottom:1px solid rgba(255,255,255,.1)}
.module-identity-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:17px;border:1px solid rgba(255,255,255,.14);border-radius:13px;background:rgba(255,255,255,.08);color:var(--gold);font-size:20px}
.module-identity p,.module-menu-label{margin:0 0 7px;color:rgba(255,255,255,.4);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.module-identity h2{margin:0 0 7px;color:#fff;font:700 18px/1.25 "Poppins",sans-serif;letter-spacing:-.01em}
.module-identity small{display:block;color:rgba(255,255,255,.55);font-size:11px;line-height:1.45}
.module-menu{display:flex;flex-direction:column;gap:7px;padding:24px 4px}
.module-menu-label{margin:0 8px 4px}
.module-menu-item{display:flex;align-items:flex-start;gap:11px;padding:11px 8px;border-radius:11px;color:rgba(255,255,255,.55)}
.module-menu-item>span{display:grid;place-items:center;width:24px;height:24px;flex:none;border:1px solid rgba(255,255,255,.13);border-radius:8px;font-size:10px;font-weight:700}
.module-menu-item div{display:flex;min-width:0;flex-direction:column;gap:3px}
.module-menu-item b{color:rgba(255,255,255,.82);font-size:11.5px;font-weight:600}
.module-menu-item small{font-size:9.5px;line-height:1.35}
.module-menu-item.active{background:rgba(255,255,255,.07)}
.module-menu-item.active>span{border-color:var(--gold);background:var(--gold);color:#fff}
.module-menu-item.active b{color:#fff}
.module-help{display:flex;align-items:flex-start;gap:9px;margin-top:auto;padding:13px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.045)}
.module-help>span{color:var(--gold);font-size:9px;margin-top:2px}
.module-help p{display:flex;flex-direction:column;gap:3px;margin:0}
.module-help b{font-size:10.5px;color:rgba(255,255,255,.82)}
.module-help small{color:rgba(255,255,255,.45);font-size:9.5px;line-height:1.4}

.shell.module-mode .sidebar-nav{display:none}
.shell:not(.module-mode) .module-nav{display:none}

@media(max-width:940px) and (min-width:721px){
  .shell.module-mode{grid-template-columns:230px minmax(0,1fr)}
  .shell.module-mode .sidebar{padding-left:12px;padding-right:12px}
  .shell.module-mode .sidebar-brand{display:flex}
  .shell.module-mode .brand-mark-big{display:block;max-width:175px}
  .shell.module-mode .brand-mark-compact{display:none}
  .shell.module-mode .account-pill{font-size:11px}
  .shell.module-mode .account-pill .chev{font-size:10px}
}

@media(max-width:720px){
  .shell.module-mode .sidebar{height:68px;display:block;padding:8px 10px}
  .shell.module-mode .module-nav{display:block;padding:0}
  .shell.module-mode .module-back{width:auto;position:absolute;left:10px;top:10px;height:48px;min-height:48px}
  .shell.module-mode .module-identity{height:52px;margin-left:190px;padding:5px 6px;border:0;overflow:hidden}
  .shell.module-mode .module-identity-icon,.shell.module-mode .module-identity p,.shell.module-mode .module-identity small{display:none}
  .shell.module-mode .module-identity h2{margin:9px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
  .shell.module-mode .module-menu,.shell.module-mode .module-help{display:none}
}

/* ================= INSTRUCCIONES HORIZONTALES =================
   Evita el efecto de un segundo sidebar dentro de cada módulo. */
.consult-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
}
.consult-info{
  min-height:0;
  padding:28px 32px 22px;
  border-radius:20px;
  box-shadow:0 14px 36px rgba(13,27,61,.12);
}
.consult-info-ring{width:260px;height:260px;right:-90px;bottom:-160px}
.consult-info-inner{
  display:grid;
  grid-template-columns:54px minmax(220px,.9fr) minmax(360px,1.25fr);
  grid-template-rows:auto auto auto;
  column-gap:20px;
  align-items:start;
}
.consult-info-icon{grid-column:1;grid-row:1/4;width:50px;height:50px;margin:0;border-radius:14px}
.consult-info-kicker{grid-column:2;grid-row:1;margin:1px 0 7px}
.consult-info-inner h2{grid-column:2;grid-row:2;margin:0 0 8px;font-size:20px;line-height:1.25}
.consult-info-inner>p:not(.consult-info-kicker){grid-column:2;grid-row:3;margin:0;padding-right:16px;font-size:12.5px;line-height:1.55}
.consult-info-steps{
  grid-column:3;
  grid-row:1/4;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0;
}
.consult-info-steps li{
  align-items:flex-start;
  gap:9px;
  min-height:78px;
  padding:12px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:13px;
  background:rgba(255,255,255,.055);
  font-size:11.5px;
  line-height:1.45;
}
.consult-info-steps li span{width:21px;height:21px;margin-top:0}
.consult-info-trust{
  justify-content:flex-end;
  margin:16px 0 0;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:11px;
}
.consult-card{border-radius:20px;box-shadow:var(--shadow-sm);padding:36px 44px 44px}
.consult-card form,.consult-card .status,.saved-rfc-row{max-width:none}

/* Carga de certificados: superficie completa, no control nativo aislado. */
.file-fields{gap:16px;margin:4px 0 22px}
.file-fields label{
  position:relative;
  margin:0;
  padding:16px;
  border:1px solid var(--line-strong);
  border-radius:15px;
  background:var(--surface-subtle);
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.file-fields label:hover{
  border-color:#AEBBD6;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.file-fields label::before{
  content:"↑";
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-bottom:12px;
  border-radius:11px;
  background:var(--brand-soft);
  color:var(--brand);
  font-size:19px;
  font-weight:700;
}
.file-fields input[type=file]{
  display:block;
  width:100%;
  min-height:48px;
  height:auto;
  margin-top:10px;
  padding:6px;
  border:1px dashed #C8CFDA;
  border-radius:10px;
  background:#fff;
  color:var(--muted);
  font-size:11px;
  line-height:34px;
}
.file-fields input[type=file]::file-selector-button{
  height:34px;
  margin-right:10px;
  padding:0 13px;
  border:0;
  border-radius:8px;
  background:var(--brand);
  color:#fff;
  font:700 11px "Inter",sans-serif;
  cursor:pointer;
  transition:background .15s ease;
}
.file-fields input[type=file]::file-selector-button:hover{background:var(--brand-dark)}

@media(max-width:1120px){
  .consult-info-inner{grid-template-columns:50px minmax(190px,.8fr) minmax(320px,1.25fr);column-gap:16px}
  .consult-info-steps{gap:7px}
  .consult-info-steps li{padding:10px;font-size:10.5px}
}

@media(max-width:940px){
  .consult-info{display:block;padding:24px}
  .consult-info-inner{grid-template-columns:48px minmax(0,1fr);column-gap:16px}
  .consult-info-icon{width:44px;height:44px}
  .consult-info-kicker,.consult-info-inner h2,.consult-info-inner>p:not(.consult-info-kicker){grid-column:2}
  .consult-info-steps{grid-column:1/3;grid-row:auto;margin-top:18px}
  .consult-info-trust{justify-content:flex-start}
}

@media(max-width:720px){
  .consult-info{padding:21px 18px;border-radius:18px}
  .consult-info-inner{grid-template-columns:42px minmax(0,1fr);column-gap:12px}
  .consult-info-icon{width:40px;height:40px;font-size:18px}
  .consult-info-inner h2{font-size:17px}
  .consult-info-inner>p:not(.consult-info-kicker){font-size:11.5px}
  .consult-info-steps{display:flex;grid-column:1/3;gap:7px;overflow-x:auto;padding-bottom:3px}
  .consult-info-steps li{min-width:190px;min-height:66px}
  .consult-info-trust{line-height:1.45}
  .file-fields{grid-template-columns:1fr}
  .file-fields label{padding:14px}
}

/* Resolución final: el contenido usa solo una nota clara y compacta. */
.consult-info{min-height:0;padding:17px 20px;border:1px solid var(--line);border-radius:15px;background:#FAFBFD;color:var(--ink);box-shadow:none}
.consult-info-ring,.consult-info-steps,.consult-info-trust{display:none}
.consult-info-inner{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-items:center}
.consult-info-icon{grid-column:1;grid-row:1/3;width:38px;height:38px;margin:0;border:0;border-radius:11px;background:var(--brand-soft);color:var(--brand);font-size:17px}
.consult-info-kicker{display:none}
.consult-info-inner h2{grid-column:2;grid-row:1;margin:0 0 2px;color:var(--ink);font:700 13px/1.35 "Poppins",sans-serif}
.consult-info-inner>p:not(.consult-info-kicker){grid-column:2;grid-row:2;margin:0;padding:0;color:var(--muted);font-size:11px;line-height:1.45}
.consult-shell{gap:12px}
.consult-card{padding-top:32px}
@media(max-width:720px){
  .consult-info{display:block;padding:13px 14px;border-radius:13px}
  .consult-info-inner{grid-template-columns:34px minmax(0,1fr);column-gap:10px}
  .consult-info-icon{width:34px;height:34px;font-size:15px}
  .consult-info-inner h2{font-size:12px}
  .consult-info-inner>p:not(.consult-info-kicker){font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ================= ESCALA ADAPTATIVA PARA PORTÁTILES =================
   Base cómoda en 13–14 pulgadas; el espacio crece solo en monitores amplios. */
@media(min-width:941px){
  .shell{grid-template-columns:clamp(226px,17vw,272px) minmax(0,1fr)}
  .dash,.consult-view,.shell-topbar{padding-left:clamp(22px,2.7vw,40px);padding-right:clamp(22px,2.7vw,40px)}
  .dash,.consult-view{width:min(100%,1240px)}
  .welcome-banner{padding:clamp(28px,2.5vw,38px) clamp(28px,2.8vw,42px)}
  .welcome-text h1{font-size:clamp(25px,2vw,30px)}
  .consult-card{padding-left:clamp(26px,3vw,44px);padding-right:clamp(26px,3vw,44px)}
}

@media(max-width:1512px) and (min-width:941px){
  .shell{grid-template-columns:238px minmax(0,1fr)}
  .sidebar{padding:14px 11px 12px}
  .sidebar-brand{min-height:58px;padding:2px 10px 14px;margin-bottom:6px}
  .brand-mark-big{max-width:184px}
  .sidebar-nav{gap:1px}
  .nav-group-label{margin:13px 10px 4px;font-size:8px}
  .nav-item{min-height:36px;padding:7px 9px;border-radius:9px;font-size:11.5px}
  .nav-icon{font-size:13px}
  .nav-soon-chip{font-size:7.5px;padding:2px 6px}
  .account-menu--sidebar{margin-top:6px;padding-top:9px}
  .account-pill{padding-top:5px;padding-bottom:5px;font-size:11.5px}

  .shell-topbar{padding-top:14px}
  .dash{padding-top:18px;padding-bottom:42px}
  .consult-view{padding-top:14px;padding-bottom:42px}
  .welcome-banner{min-height:158px;margin-bottom:18px;border-radius:20px;box-shadow:0 14px 34px rgba(13,27,61,.14)}
  .welcome-kicker{margin-bottom:7px;font-size:9px}
  .welcome-text .dash-sub{font-size:12.5px}
  .welcome-stat{min-width:94px;padding:13px 12px}
  .welcome-stat b{font-size:16px}
  .welcome-stat small{font-size:9px}
  .dash-search{height:43px;margin-bottom:24px}
  .dash-section-head{margin-bottom:10px}
  .dash-section-head--soon{margin-top:28px}
  .dash-grid{gap:11px}
  .action-card{min-height:145px;padding:16px;gap:5px;border-radius:14px}
  .action-icon{width:35px;height:35px;margin-bottom:5px;font-size:16px}
  .action-card b{font-size:12.5px}
  .action-card small{font-size:10.5px}
  .action-go{top:16px;right:16px;width:25px;height:25px}
  .dash-grid--soon{gap:10px;padding:12px;border-radius:16px}
  .action-card--soon{min-height:132px;padding:15px}
  .soon-badge{top:11px;right:11px;font-size:7.5px}

  .back-link{min-height:32px;margin-bottom:10px;font-size:11.5px}
  .consult-info{padding:13px 16px}
  .consult-card{padding-top:26px;padding-bottom:32px;border-radius:17px}
  .card-heading{padding-bottom:18px;margin-bottom:18px}
  .card-heading h2{font-size:20px}
  .card-heading p{font-size:11.5px}
  label{margin-top:13px;font-size:9.5px}
  input,select{height:43px;font-size:12.5px}
  .privacy{margin:17px 0;padding:11px 13px}
  .primary{height:46px}
  .file-fields label{padding:13px}
  .file-fields label::before{width:32px;height:32px;margin-bottom:8px}
  .file-fields input[type=file]{margin-top:7px}

  .module-identity{padding:20px 8px 17px}
  .module-identity-icon{width:38px;height:38px;margin-bottom:12px}
  .module-identity h2{font-size:15px}
  .module-menu{gap:3px;padding:16px 2px}
  .module-menu-item{padding:8px 6px}
  .module-help{padding:10px}
}

/* Altura reducida: evita scroll innecesario en Safari/Chrome con barras visibles. */
@media(max-height:820px) and (min-width:941px){
  .sidebar{padding-top:10px;padding-bottom:9px}
  .sidebar-brand{min-height:48px;padding-bottom:10px}
  .brand-mark-big{max-width:164px}
  .nav-item{min-height:32px;padding-top:5px;padding-bottom:5px}
  .nav-group-label{margin-top:9px}
  .welcome-banner{min-height:138px;padding-top:24px;padding-bottom:24px}
  .dash-search{margin-bottom:18px}
  .action-card{min-height:128px}
  .action-card--soon{min-height:116px}
  .module-identity{padding-top:14px;padding-bottom:13px}
  .module-menu{padding-top:11px;padding-bottom:11px}
  .module-menu-item{padding-top:6px;padding-bottom:6px}
  .module-help{display:none}
}

@media(min-width:1800px){
  .dash,.consult-view,.shell-topbar{max-width:1380px}
  .dash-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* ================= CORRECCIÓN DE ENCUADRE ================= */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.app,.shell,.shell-main,.dash,.consult-view{min-width:0;max-width:100%}
.shell-main{width:100%;overflow-x:hidden}
.dash,.consult-view{box-sizing:border-box}
.welcome-banner,.dash-search,.dash-grid,.consult-shell,.consult-card{min-width:0;max-width:100%}
.welcome-text{min-width:0}
.welcome-text h1{max-width:100%;overflow-wrap:anywhere}

/* Solo el elemento activo lleva tarjeta blanca; el resto permanece integrado. */
.sidebar-nav .nav-item{
  background:transparent!important;
  box-shadow:none!important;
  color:rgba(255,255,255,.62)!important;
}
.sidebar-nav .nav-item:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
.sidebar-nav .nav-item[data-soon]{color:rgba(255,255,255,.34)!important}
.sidebar-nav .nav-item[aria-current="page"]{background:#fff!important;color:var(--brand-dark)!important;box-shadow:0 7px 18px rgba(0,0,0,.13)!important}
.sidebar-nav .nav-item[aria-current="page"] .nav-icon{color:var(--gold)!important}

@media(max-width:1280px) and (min-width:941px){
  .shell{grid-template-columns:218px minmax(0,1fr)}
  .brand-mark-big{max-width:168px}
  .dash,.consult-view,.shell-topbar{padding-left:20px;padding-right:20px}
  .welcome-banner{padding-left:28px;padding-right:28px}
  .welcome-text h1{font-size:24px}
  .dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash-grid--soon{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:1060px) and (min-width:941px){
  .shell{grid-template-columns:202px minmax(0,1fr)}
  .sidebar{padding-left:8px;padding-right:8px}
  .nav-item{font-size:10.5px}
  .nav-item .nav-icon{width:18px}
  .welcome-banner{min-height:132px}
  .welcome-text .dash-sub{max-width:500px}
  .dash-grid--soon{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ================= MÓDULO CSF ================= */
.csf-settings{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}
.csf-settings label{margin-top:0}
.fiel-upload,.schedule-box{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface-subtle)}
.fiel-upload>p{display:flex;flex-direction:column;gap:4px;margin:0 0 15px}
.fiel-upload>p b{font-size:13px}
.fiel-upload>p small{color:var(--muted);font-size:11px;line-height:1.45}
.fiel-upload .file-fields{margin-bottom:10px}
.schedule-box>.remember-rfc{margin:0;color:var(--ink);font-weight:700}
.schedule-box #scheduleOptions{margin-top:12px}
.schedule-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.schedule-options label{margin-top:0}
.fiscal-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#fff}
.fiscal-filters label{margin-top:0}
.fiscal-filters--xml{grid-template-columns:.9fr .8fr 1.2fr .7fr 1fr}
.xml-repository{margin-top:24px}.xml-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.xml-toolbar>div:first-child{display:flex;align-items:baseline;gap:9px}.xml-toolbar b{font-size:12px}.xml-toolbar span{color:var(--faint);font-size:9px}.xml-tools{display:flex;align-items:center;gap:7px}.xml-tools button,.xml-tools summary{height:30px;padding:0 10px;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:var(--ink);font:700 9px "Inter",sans-serif;line-height:28px;cursor:pointer}.xml-tools button:disabled{opacity:.4;cursor:default}.xml-tools details{position:relative}.xml-tools summary{list-style:none}.column-picker{position:absolute;right:0;top:36px;z-index:8;display:grid;grid-template-columns:1fr 1fr;gap:8px;width:310px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow-md)}.column-picker label{display:flex;align-items:center;gap:6px;margin:0;color:var(--muted);font-size:9px;font-weight:600;text-transform:none;letter-spacing:0}.column-picker input{width:auto;height:auto}.xml-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:10px}.xml-table-wrap table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:9.5px}.xml-table-wrap th{position:sticky;top:0;padding:8px 10px;background:#F7F8FA;color:var(--faint);font-size:8px;letter-spacing:.08em;text-align:left;text-transform:uppercase}.xml-table-wrap td{max-width:220px;padding:8px 10px;border-top:1px solid var(--line);overflow:hidden;text-overflow:ellipsis}.xml-table-wrap tbody tr:hover{background:#FAFBFC}.xml-table-wrap input{width:auto;height:auto}
.xml-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:17px}.xml-summary article{position:relative;overflow:hidden;display:flex;min-width:0;flex-direction:column;gap:5px;padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:#fff}.xml-summary article::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--summary-color)}.xml-summary span{color:var(--muted);font-size:8.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.xml-summary b{overflow:hidden;color:var(--ink);font:700 clamp(14px,1.35vw,19px) "Poppins",sans-serif;text-overflow:ellipsis}.xml-summary--subtotal{--summary-color:#64748B}.xml-summary--iva{--summary-color:#2563EB}.xml-summary--withheld{--summary-color:#D97706}.xml-summary--total{--summary-color:#15803D}.xml-summary--total b{color:#12652F}
.schedule-next{margin:16px 0 0;padding:11px 13px;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:11.5px}
.history-label{margin:18px 0 8px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}

/* Vista CSF: composición sobria y registro de actividad a ancho completo. */
.extra-fields:has(.csf-settings){display:block}
.extra-fields:has(.csf-settings) .csf-settings{grid-template-columns:minmax(260px,1.25fr) minmax(220px,.75fr);gap:12px}
.extra-fields:has(.csf-settings) .schedule-box{margin-top:12px;padding:13px 15px;background:#fff;border-radius:11px}
.extra-fields:has(.csf-settings) .fiel-upload{margin-top:12px}
.extra-fields:has(.csf-settings) .csf-history{width:100%;margin-top:26px}
@media(max-width:720px){.csf-settings{grid-template-columns:1fr}.fiel-upload,.schedule-box{padding:14px}}
@media(max-width:720px){.schedule-options{grid-template-columns:1fr}}
@media(max-width:720px){.fiscal-filters{grid-template-columns:1fr}}
@media(max-width:720px){.fiscal-filters--xml{grid-template-columns:1fr 1fr}.xml-toolbar{align-items:flex-start;flex-direction:column}.column-picker{left:0;right:auto;width:280px}}
@media(max-width:720px){.xml-summary{grid-template-columns:1fr 1fr}}

.declaration-summary{margin-top:24px}.declaration-summary-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.declaration-summary-head>div{display:flex;align-items:baseline;gap:8px}.declaration-summary-head b{font-size:12px}.declaration-summary-head span{color:var(--faint);font-size:9px}.declaration-summary-head a{height:30px;padding:0 11px;border:1px solid var(--line-strong);border-radius:7px;color:var(--brand);font-size:9px;font-weight:700;line-height:28px;text-decoration:none}.declaration-months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.declaration-month{min-height:118px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#FAFBFC;color:var(--muted)}.declaration-month.has-data{background:#fff;border-color:#C9D4E7}.declaration-month header{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid var(--line)}.declaration-month header b{color:var(--ink);font-size:10px}.declaration-month header span{color:var(--faint);font-size:8px}.declaration-month.has-data header span{color:var(--success);font-weight:700}.declaration-month dl{display:grid;gap:4px;margin:8px 0 0}.declaration-month dl div{display:flex;justify-content:space-between;gap:8px}.declaration-month dt,.declaration-month dd{margin:0;font-size:8px}.declaration-month dd{color:var(--ink);font-weight:600;text-align:right}.declaration-month p{margin:18px 0 0;color:var(--faint);font-size:8.5px;text-align:center}
.declaration-month header>div{display:flex;align-items:center;gap:7px}.declaration-card-actions{display:flex;gap:4px}.declaration-card-actions a{display:grid;width:24px;height:24px;padding:0;place-items:center;border:1px solid var(--line-strong);border-radius:6px;background:#fff;color:var(--brand);font-size:12px;line-height:1;text-decoration:none}.declaration-card-actions a:hover{border-color:var(--brand);background:var(--brand-soft)}.declaration-card-actions svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1000px){.declaration-months{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.declaration-months{grid-template-columns:repeat(2,minmax(0,1fr))}.declaration-summary-head{align-items:flex-start;flex-direction:column;gap:8px}}
.draft-launch{display:flex;align-items:center;gap:10px;margin-top:12px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:#fff}.draft-launch button{height:32px;padding:0 12px;border:0;border-radius:7px;background:var(--brand);color:#fff;font-size:9.5px;font-weight:700;cursor:pointer}.draft-launch span{color:var(--muted);font-size:9.5px}.declaration-draft:not(:empty){margin-top:12px;padding:16px;border:1px solid #C8D3E7;border-radius:12px;background:#FBFCFF}.draft-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.draft-head>div{display:flex;flex-direction:column;gap:3px}.draft-head b{font-size:13px}.draft-head span{color:var(--muted);font-size:9px}.draft-head label{width:220px;margin:0}.draft-head select{height:36px}.draft-body{margin-top:14px}.draft-reconciliation{display:flex;flex-wrap:wrap;gap:6px}.draft-reconciliation span{padding:6px 8px;border-radius:7px;background:var(--bg);color:var(--muted);font-size:8.5px}.draft-reconciliation b{color:var(--ink)}.draft-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.draft-fields label{margin:0;font-size:8px}.draft-fields input{height:38px}.draft-result{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:11px 13px;border-left:3px solid var(--brand);background:#EEF3FF}.draft-result span{font-size:9px}.draft-result b{font-size:16px}.draft-warning{margin-top:10px;color:#8A5A00;font-size:8.5px}.draft-warning p{margin:3px 0}.draft-review{display:flex;align-items:center;gap:7px;margin:11px 0;font-size:9px;text-transform:none;letter-spacing:0}.draft-review input{width:auto;height:auto}.draft-actions{display:flex;justify-content:flex-end;gap:7px}.draft-actions button,.draft-actions a{height:32px;padding:0 11px;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:var(--ink);font:700 9px "Inter",sans-serif;line-height:30px;text-decoration:none;cursor:pointer}.draft-actions a{background:var(--brand);color:#fff}.draft-actions a.disabled{opacity:.4;pointer-events:none}
@media(max-width:800px){.draft-head{align-items:flex-start;flex-direction:column}.draft-head label{width:100%}.draft-fields{grid-template-columns:1fr 1fr}}

/* Preparador de declaraciones: estructura funcional inspirada en el flujo del SAT. */
.declaration-draft:not(:empty){padding:0;overflow:hidden;background:#fff;border-color:var(--line-strong)}
.sat-draft-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line)}
.sat-draft-title h3{margin:3px 0 2px;font-size:16px}.sat-draft-title p{margin:0;color:var(--muted);font-size:9.5px}.sat-version{color:var(--brand);font-size:8px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.sat-draft-state{padding:5px 9px;border-radius:20px;background:#FFF4DF;color:#9A5B00;font-size:8px;font-weight:700;text-transform:uppercase}
.sat-steps{display:grid;grid-template-columns:repeat(4,1fr);margin:0;padding:0 20px;border-bottom:1px solid var(--line);list-style:none}.sat-steps li{position:relative;display:flex;align-items:center;gap:7px;padding:12px 0;color:var(--faint);font-size:8.5px}.sat-steps li:not(:last-child)::after{content:"";position:absolute;right:12px;width:28%;height:1px;background:var(--line-strong)}.sat-steps b{display:grid;width:20px;height:20px;place-items:center;border:1px solid var(--line-strong);border-radius:50%;font-size:8px}.sat-steps .active{color:var(--ink);font-weight:700}.sat-steps .active b{border-color:var(--brand);background:var(--brand);color:#fff}
.sat-config{display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:9px;padding:14px 20px;background:#FAFBFC;border-bottom:1px solid var(--line)}.sat-config label{margin:0;font-size:8px}.sat-config input,.sat-config select{height:36px;background:#fff}
.sat-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:390px}.sat-obligations{padding:14px 10px;border-right:1px solid var(--line);background:#FAFBFC}.sat-obligations>span{display:block;padding:4px 9px 9px;color:var(--faint);font-size:7.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.sat-obligations button{display:block;width:100%;padding:9px;border:0;border-left:2px solid transparent;background:transparent;color:var(--muted);font:600 9px "Inter",sans-serif;text-align:left;cursor:pointer}.sat-obligations button:hover{background:#F1F4F8}.sat-obligations button.active{border-left-color:var(--brand);background:#EAF0FF;color:var(--brand)}.sat-workspace>section{min-width:0;padding:17px 20px}
.sat-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.sat-section-head span{color:var(--faint);font-size:7.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.sat-section-head h4{margin:3px 0 0;font-size:14px}.sat-section-head .source-status{padding:5px 8px;border-radius:16px;background:#E7F6EC;color:#14733B;letter-spacing:0;text-transform:none}.sat-capture-section{margin-top:14px;border-top:1px solid var(--line)}.sat-capture-section h5{margin:0;padding:11px 0 3px;font-size:10px}.draft-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sat-field{min-width:0}.sat-field label{position:relative;display:block}.sat-field .field-origin{float:right;color:var(--faint);font-size:7px;font-weight:500;letter-spacing:0;text-transform:none}.sat-field p{min-height:24px;margin:4px 2px 0;color:var(--muted);font-size:7.5px;line-height:1.4}.draft-result span{display:flex;flex-direction:column}.draft-result small{margin-top:2px;color:var(--muted);font-size:7px}.draft-notes{margin-top:10px;padding:9px 11px;border:1px solid #E6D8B6;border-radius:8px;background:#FFFCF5;color:#795000;font-size:8px}.draft-notes summary{font-weight:700;cursor:pointer}.draft-notes p{margin:4px 0}.draft-actions{align-items:center}.draft-actions>span{margin-right:auto;color:var(--faint);font-size:8px}.draft-loading{color:var(--muted);font-size:9px}
@media(max-width:900px){.sat-config{grid-template-columns:1fr 1fr}.sat-workspace{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:640px){.sat-steps span{display:none}.sat-steps li:not(:last-child)::after{width:45%}.sat-config{grid-template-columns:1fr}.sat-workspace{display:block}.sat-obligations{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--line)}.sat-obligations>span{display:none}.sat-obligations button{width:auto;white-space:nowrap;border-left:0;border-bottom:2px solid transparent}.sat-obligations button.active{border-bottom-color:var(--brand)}.sat-workspace>section{padding:14px}.draft-fields{grid-template-columns:1fr}.draft-actions{align-items:stretch;flex-direction:column}.draft-actions>span{margin:0}.draft-actions button,.draft-actions a{text-align:center}}
.sat-field input.field-invalid{border-color:#DC2626;background:#FFF7F7;box-shadow:0 0 0 2px rgba(220,38,38,.08)}
.sat-section-head .source-status.pending-review{background:#FFF4DF;color:#925600}.sat-steps li.ready{color:#925600;font-weight:700}.sat-steps li.ready b{border-color:#ED8500;background:#ED8500;color:#fff}.draft-actions button:disabled{opacity:.55;cursor:wait}
.stored-drafts{margin-top:18px}.stored-drafts-head{display:flex;justify-content:space-between;margin-bottom:8px}.stored-drafts-head>div{display:flex;align-items:baseline;gap:8px}.stored-drafts-head b{font-size:11px}.stored-drafts-head span{color:var(--faint);font-size:8.5px}.stored-drafts-list{border-top:1px solid var(--line)}.stored-drafts-list article{display:grid;grid-template-columns:8px minmax(0,1fr) 130px 30px 30px;align-items:center;gap:10px;min-height:50px;padding:7px 4px;border-bottom:1px solid var(--line)}.draft-dot{width:7px;height:7px;border-radius:50%;background:#D97706}.draft-dot.reviewed{background:#16A34A}.stored-drafts-list article>div{display:flex;min-width:0;flex-direction:column;gap:2px}.stored-drafts-list b{font-size:9.5px}.stored-drafts-list small{color:var(--muted);font-size:8px}.stored-drafts-list strong{font-size:10px;text-align:right}.stored-drafts-list button{display:grid;width:28px;height:28px;padding:0;place-items:center;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:var(--brand);cursor:pointer}.stored-drafts-list button.danger{color:#DC2626}.stored-drafts-list button:hover{background:var(--bg)}.stored-drafts-list button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:640px){.stored-drafts-list article{grid-template-columns:8px minmax(0,1fr) 30px 30px}.stored-drafts-list strong{display:none}}

/* El color del rail lateral continúa aunque el documento sea más alto que el viewport. */
@media(min-width:721px){.shell::before{content:"";position:fixed;z-index:0;inset:0 auto 0 0;width:clamp(226px,17vw,272px);background:#0D1B3D;pointer-events:none}.sidebar,.shell-main{position:relative}.sidebar{z-index:2}.shell-main{z-index:1}}
@media(max-width:1512px) and (min-width:1281px){.shell::before{width:238px}}
@media(max-width:1280px) and (min-width:1061px){.shell::before{width:218px}}
@media(max-width:1060px) and (min-width:941px){.shell::before{width:202px}}
@media(max-width:940px) and (min-width:721px){.shell::before{width:78px}}

/* Historial de constancias: una fila por registro, altura fija, acciones en línea. */
.csf-history .history-head{margin:0 0 10px;padding:0 2px;display:flex;align-items:center;justify-content:space-between}
.csf-history .history-head .history-label{margin:0;color:var(--ink);font-size:10px;letter-spacing:.11em}
.csf-history .history-head>span{padding:3px 7px;border-radius:20px;background:var(--bg);color:var(--muted);font-size:9px;font-weight:700}
.history-columns{display:grid;grid-template-columns:minmax(0,1fr) 120px 72px;gap:16px;padding:8px 14px;border-bottom:1px solid var(--line);color:var(--faint);font-size:8px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.history-columns span:last-child{text-align:right}
.csf-history .history-list{display:flex;flex-direction:column;gap:0;margin:0;padding:0;list-style:none;border-bottom:1px solid var(--line)}
.csf-history .history-item{
  display:grid;
  grid-template-columns:10px minmax(0,1fr) 72px;
  align-items:center;
  gap:11px;
  min-height:46px;
  padding:6px 10px;
  border:0;
  border-top:1px solid var(--line);
  background:transparent;
}
.csf-history .history-item:hover{background:#FAFBFC}
.csf-history .history-state{width:7px;height:7px;border-radius:50%;background:var(--success);color:transparent;overflow:hidden}
.csf-history .history-item--failed .history-state{background:var(--danger-ink)}
.csf-history .history-item--running .history-state{background:var(--gold)}
.csf-history .history-info{grid-column:2;display:grid;grid-template-columns:minmax(0,1fr) 120px;align-items:center;column-gap:16px;min-width:0}
.csf-history .history-info b{grid-column:1;font-size:10.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csf-history .history-info small{grid-column:2;grid-row:1;color:var(--muted);font-size:9px}
.history-period{color:var(--ink);font-weight:600}
.csf-history .history-info strong{color:var(--success)}
.csf-history .history-item--failed .history-info strong{color:var(--danger-ink)}
.csf-history .history-info em{grid-column:1/3;margin:1px 0 0;color:var(--danger-ink);font-size:9px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csf-history .history-actions{grid-column:3;display:flex;align-items:center;justify-content:flex-end;gap:5px}
.csf-history .history-actions a,.csf-history .history-actions button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;line-height:1;cursor:pointer}
.csf-history .history-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.csf-history .history-actions a{color:var(--brand)}
.csf-history .history-actions button{color:var(--danger-ink)}
.csf-history .history-actions a:hover{border-color:#BCC8E0;background:var(--brand-soft)}
.csf-history .history-actions button:hover{border-color:#E9BABA;background:var(--danger-bg)}
.history-empty{margin-top:16px;padding:18px;border:1px dashed var(--line);border-radius:11px;color:var(--muted);font-size:11px;text-align:center}

/* La barra flotante competía con las acciones y reforzaba una apariencia genérica. */
.assistant-bar{display:none!important}

@media(max-width:900px){
  .extra-fields:has(.csf-settings) .csf-settings{grid-template-columns:1fr}
  .history-columns{display:none}
  .csf-history .history-item{grid-template-columns:8px minmax(0,1fr) auto;gap:8px;padding:7px 6px}
  .csf-history .history-info{grid-column:2;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
  .csf-history .history-info em{white-space:normal}
  .csf-history .history-actions{grid-column:3}
}

/* ================= VIGENCIA FIEL ================= */
.fiel-health{--health:#16A34A;display:grid;place-items:center;align-content:center;width:62px;height:62px;flex:none;border-radius:50%;background:radial-gradient(circle at center,#fff 56%,transparent 58%),conic-gradient(var(--health) 0 78%,#E8ECF2 78% 100%);color:var(--health)}
.fiel-health span{font:800 16px/1 "Poppins",sans-serif}.fiel-health small{margin-top:3px;color:var(--muted);font-size:8px;font-weight:700;text-transform:uppercase}
.fiel-health--warning{--health:#F59E0B;background:radial-gradient(circle at center,#fff 56%,transparent 58%),conic-gradient(var(--health) 0 40%,#FDECC8 40% 100%)}
.fiel-health--expired,.fiel-health--missing{--health:#DC2626;background:radial-gradient(circle at center,#fff 56%,transparent 58%),conic-gradient(var(--health) 0 12%,#F8DCDC 12% 100%)}
.fiel-status-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:11px;background:var(--surface-subtle)}
.fiel-status-row>span:last-child{color:var(--muted);font-size:10.5px}
.company-badge--valid{background:var(--success-soft);color:#0F6B31}
.company-badge--warning{background:#FFF0CF;color:#9A5A00}
.company-badge--expired,.company-badge--missing{background:var(--danger-bg);color:var(--danger-ink)}
.fiel-expiry-alert{grid-column:1/-1;display:flex;align-items:center;gap:13px;margin:0 0 16px;padding:14px 16px;border:1px solid #F3C66A;border-radius:14px;background:#FFF8E8;color:#7A4800}
.fiel-expiry-alert>span{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:9px;background:#F59E0B;color:#fff;font-weight:800}
.fiel-expiry-alert div{display:flex;flex-direction:column;gap:3px}.fiel-expiry-alert b{font-size:12.5px}.fiel-expiry-alert small{font-size:10.5px;line-height:1.45}
@media(max-width:720px){.fiel-health{width:54px;height:54px}.fiel-status-row{align-items:flex-start;flex-direction:column}}
.taxpayer-identity{display:grid;grid-template-columns:48px minmax(190px,.8fr) minmax(0,2fr);align-items:center;gap:14px;margin-top:12px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#fff}.taxpayer-shield{display:grid;width:42px;height:46px;place-items:center;clip-path:polygon(50% 0,92% 17%,84% 72%,50% 100%,16% 72%,8% 17%);color:#fff;font-size:17px;font-weight:800}.taxpayer-shield.active{background:#179447}.taxpayer-shield.inactive{background:#D93434}.taxpayer-main{display:flex;min-width:0;flex-direction:column;gap:2px}.taxpayer-main small{color:var(--faint);font-size:7.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.taxpayer-main b{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.taxpayer-main span{color:var(--muted);font-size:9px;font-weight:600}.taxpayer-identity dl{display:grid;grid-template-columns:1.5fr .65fr .8fr 1fr;gap:12px;margin:0}.taxpayer-identity dl div{min-width:0;padding-left:11px;border-left:1px solid var(--line)}.taxpayer-identity dt{margin-bottom:4px;color:var(--faint);font-size:7px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.taxpayer-identity dd{overflow:hidden;margin:0;color:var(--ink);font-size:8.5px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.taxpayer-state.active{color:#14733B}.taxpayer-state.inactive{color:#C62828}
@media(max-width:900px){.taxpayer-identity{grid-template-columns:42px 1fr}.taxpayer-identity dl{grid-column:1/-1;grid-template-columns:1fr 1fr}.taxpayer-identity dl div{padding:7px 0 0;border-top:1px solid var(--line);border-left:0}}
.fiscal-info-result:not(:empty){margin-top:14px;padding:15px;border:1px solid var(--line);border-radius:11px;background:#fff}.fiscal-info-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:11px;border-bottom:1px solid var(--line)}.fiscal-info-head>div{display:flex;flex-direction:column;gap:2px}.fiscal-info-head small{color:var(--faint);font-size:7.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.fiscal-info-head b{font-size:12px}.fiscal-info-head>span{color:#14733B;font-size:8.5px;font-weight:700}.fiscal-info-head a{color:var(--brand);font-size:9px;font-weight:700;text-decoration:none}.fiscal-info-result dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:10px 0 0}.fiscal-info-result dl div{padding:9px 11px;border-bottom:1px solid var(--line)}.fiscal-info-result dt{margin-bottom:4px;color:var(--faint);font-size:7px;font-weight:700;text-transform:uppercase}.fiscal-info-result dd{margin:0;color:var(--ink);font-size:9px;font-weight:600;overflow-wrap:anywhere}@media(max-width:720px){.fiscal-info-result dl{grid-template-columns:1fr 1fr}}
.fiscal-request-state{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:13px;padding:4px}.fiscal-spinner{width:24px;height:24px;border:3px solid #DCE5F6;border-top-color:var(--brand);border-radius:50%;animation:fiscal-spin .9s linear infinite}.fiscal-request-state>div{display:flex;flex-direction:column;gap:2px}.fiscal-request-state small{color:#14733B;font-size:7.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.fiscal-request-state b{font-size:11px}.fiscal-request-state p{margin:1px 0;color:var(--muted);font-size:8.5px}.fiscal-request-state em{color:var(--faint);font-size:7.5px;font-style:normal}.fiscal-request-state button{height:32px;padding:0 11px;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:var(--brand);font-size:8.5px;font-weight:700;cursor:pointer}.fiscal-request-state button:disabled{opacity:.5}.fiscal-visual-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.fiscal-visual-grid section{overflow:hidden;border:1px solid var(--line);border-radius:9px}.fiscal-visual-grid section>header{display:flex;align-items:center;gap:7px;padding:9px 11px;background:#F7F9FC}.fiscal-visual-grid section>header span{color:var(--brand)}.fiscal-visual-grid section>header b{font-size:9px}.fiscal-visual-grid section dl{grid-template-columns:1fr;margin:0}.fiscal-visual-grid section dl div{display:grid;grid-template-columns:minmax(110px,.7fr) 1.3fr;gap:10px}.fiscal-visual-grid section dl div:last-child{border-bottom:0}@keyframes fiscal-spin{to{transform:rotate(360deg)}}@media(max-width:720px){.fiscal-request-state{grid-template-columns:28px 1fr}.fiscal-request-state button{grid-column:1/-1}.fiscal-visual-grid{grid-template-columns:1fr}}
.fiscal-visual-grid .fiscal-nested-block{display:block;grid-template-columns:none;padding:0}.fiscal-nested-block h4{margin:0;padding:8px 11px;border-bottom:1px solid var(--line);background:#FBFCFE;color:var(--ink);font-size:8px;text-transform:uppercase}.fiscal-readable-fields{display:grid;grid-template-columns:1fr 1fr}.fiscal-readable-fields>div{display:flex!important;min-width:0;flex-direction:column;gap:3px;padding:8px 11px!important;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.fiscal-readable-fields>div:nth-child(even){border-right:0}.fiscal-readable-fields span{color:var(--faint);font-size:7px;font-weight:700;text-transform:uppercase}.fiscal-readable-fields b{color:var(--ink);font-size:8.5px;line-height:1.35;overflow-wrap:anywhere}@media(max-width:600px){.fiscal-readable-fields{grid-template-columns:1fr}.fiscal-readable-fields>div{border-right:0}}
.fiscal-info-history{margin-top:18px}.fiscal-history-head{display:flex;justify-content:space-between;margin-bottom:8px}.fiscal-history-head>div{display:flex;align-items:baseline;gap:8px}.fiscal-history-head b{font-size:10px}.fiscal-history-head span{color:var(--faint);font-size:8px}.fiscal-history-list{border-top:1px solid var(--line)}.fiscal-history-list article{display:grid;grid-template-columns:8px minmax(0,1fr) 28px 28px;align-items:center;gap:9px;min-height:48px;padding:7px 3px;border-bottom:1px solid var(--line)}.history-state-dot{width:7px;height:7px;border-radius:50%;background:#D97706}.history-state-dot.completed{background:#16A34A}.fiscal-history-list article>div{display:flex;flex-direction:column;gap:2px}.fiscal-history-list b{font-size:9px}.fiscal-history-list small{color:var(--muted);font-size:8px}.fiscal-history-list button{display:grid;width:28px;height:28px;padding:0;place-items:center;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:var(--brand);cursor:pointer}.fiscal-history-list button.danger{color:#DC2626}.fiscal-history-list script{display:none}
.taxpayer-identity dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}
.extra-fields:has(.certificate-workflow)~.privacy,.extra-fields:has(.certificate-workflow)~.primary{display:none}.certificate-workflow{margin-top:12px}.certificate-eligibility{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#fff}.certificate-eligibility>span{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;color:#fff;font-weight:800}.certificate-eligibility.eligible>span{background:#179447}.certificate-eligibility.blocked>span{background:#D93434}.certificate-eligibility div{display:flex;flex-direction:column;gap:2px}.certificate-eligibility small{color:var(--faint);font-size:7px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.certificate-eligibility b{font-size:10.5px}.certificate-eligibility p{margin:0;color:var(--muted);font-size:8.5px}.certificate-steps{display:grid;grid-template-columns:repeat(4,1fr);margin:12px 0 0;padding:0;border:1px solid var(--line);border-radius:11px;background:#fff;list-style:none}.certificate-steps li{display:flex;align-items:flex-start;gap:8px;padding:13px;border-right:1px solid var(--line)}.certificate-steps li:last-child{border:0}.certificate-steps li>b{display:grid;width:22px;height:22px;flex:none;place-items:center;border:1px solid var(--line-strong);border-radius:50%;font-size:8px}.certificate-steps li.done>b{border-color:#179447;background:#179447;color:#fff}.certificate-steps li>span{display:flex;flex-direction:column;gap:2px;font-size:8.5px;font-weight:700}.certificate-steps small{color:var(--muted);font-size:7.5px;font-weight:400}.certificate-package{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:14px 15px;border:1px solid var(--line);border-radius:11px;background:#fff}.certificate-package>div{display:flex;flex-direction:column;gap:2px}.certificate-package small{color:var(--faint);font-size:7px;font-weight:700;text-transform:uppercase}.certificate-package b{font-size:10.5px}.certificate-package p{margin:0;color:var(--muted);font-size:8.5px}.certificate-file input{position:absolute;opacity:0;pointer-events:none}.certificate-file span,.certificate-actions a{display:inline-flex;height:32px;align-items:center;padding:0 11px;border-radius:7px;background:var(--brand);color:#fff;font-size:8.5px;font-weight:700;white-space:nowrap;cursor:pointer}.certificate-file:has(input:disabled) span{opacity:.4;cursor:not-allowed}.certificate-actions{display:flex;gap:7px;margin-top:10px}.certificate-actions a{text-decoration:none}.certificate-actions a.secondary{border:1px solid var(--line-strong);background:#fff;color:var(--brand)}.certificate-validation{display:flex;align-items:center;gap:9px;margin-top:10px;padding:10px 12px;border-radius:9px}.certificate-validation.valid{background:#E7F6EC;color:#14733B}.certificate-validation.invalid{background:#FFF0F0;color:#B42318}.certificate-validation>div{display:flex;flex-direction:column}.certificate-validation b{font-size:9px}.certificate-validation small{font-size:8px}@media(max-width:800px){.certificate-steps{grid-template-columns:1fr 1fr}.certificate-steps li:nth-child(2){border-right:0}.certificate-package{align-items:flex-start;flex-direction:column}}@media(max-width:520px){.certificate-steps{grid-template-columns:1fr}.certificate-steps li{border-right:0;border-bottom:1px solid var(--line)}}
.certificate-actions button{height:32px;padding:0 12px;border:0;border-radius:7px;background:var(--brand);color:#fff;font-size:8.5px;font-weight:700;cursor:pointer}.renewal-modal-overlay{position:fixed;z-index:1200;inset:0;display:grid;place-items:center;padding:20px;background:rgba(8,18,42,.46);backdrop-filter:blur(8px)}.renewal-modal{width:min(430px,100%);overflow:hidden;border:1px solid rgba(255,255,255,.7);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(9,24,54,.28)}.renewal-modal>header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line)}.renewal-brand{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:10px;font-weight:800}.renewal-brand img{width:24px;height:24px;object-fit:contain}.renewal-modal>header>button{border:0;background:transparent;color:var(--muted);font-size:21px;cursor:pointer}.renewal-modal-body{padding:20px}.renewal-modal-body>small{color:var(--brand);font-size:7.5px;font-weight:800;letter-spacing:.1em}.renewal-modal h3{margin:4px 0 6px;font-size:17px}.renewal-modal-body>p{margin:0 0 15px;color:var(--muted);font-size:9.5px;line-height:1.55}.renewal-modal label{display:block;margin:11px 0 0;font-size:8px}.renewal-modal input{height:40px;margin-top:6px;background:#FAFBFC}.renewal-modal label em{display:block;min-height:15px;margin-top:4px;color:#DC2626;font-size:8px;font-style:normal}.renewal-warning{display:flex;gap:9px;margin-top:7px;padding:10px 11px;border:1px solid #F3D3A6;border-radius:9px;background:#FFF9EF;color:#704700}.renewal-warning>span{display:grid;width:18px;height:18px;flex:none;place-items:center;border-radius:50%;background:#ED8500;color:#fff;font-size:10px;font-weight:800}.renewal-warning p{margin:0;font-size:8.5px;line-height:1.45}.renewal-modal-actions{display:flex;gap:9px;margin-top:16px}.renewal-modal-actions button{height:36px;flex:1;border:0;border-radius:8px;background:var(--brand);color:#fff;font-size:9px;font-weight:700;cursor:pointer}.renewal-modal-actions button.secondary{border:1px solid var(--line-strong);background:#fff;color:var(--ink)}.renewal-modal-actions button:disabled{opacity:.4;cursor:not-allowed}.renewal-progress{display:flex;align-items:center;gap:8px;margin-top:12px;padding:9px 10px;border-radius:8px;background:#EEF3FF;color:var(--brand)}.renewal-progress>span{width:14px;height:14px;border:2px solid #B7C7EA;border-top-color:var(--brand);border-radius:50%;animation:fiscal-spin .8s linear infinite}.renewal-progress p{margin:0;font-size:8px}.renewal-progress.success{display:block;background:#E7F6EC;color:#14733B}.renewal-progress.error{display:block;background:#FFF0F0;color:#B42318}.renewal-progress b{font-size:9px}.renewal-progress.success p,.renewal-progress.error p{margin-top:3px}

/* ================= PRESENTACIÓN DE DECLARACIONES ================= */
.sat-preload-stage,.preloaded-declaration,.retention-flow{margin-top:20px;padding:18px 20px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm)}
.sat-preload-stage header,.preloaded-declaration header,.retention-flow header,.retention-history header,.preloaded-sat-summary header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.sat-preload-stage header small,.preloaded-declaration header small,.retention-flow header small,.retention-history header small,.preloaded-sat-summary header small{display:block;margin:0 0 5px;color:var(--brand);font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.sat-preload-stage header h3,.preloaded-declaration header h3,.retention-flow header h3,.retention-history header h3,.preloaded-sat-summary header h3{margin:0 0 4px;font:700 15px "Poppins",sans-serif}
.sat-preload-stage header p,.preloaded-declaration header p,.retention-flow header p{margin:0;max-width:440px;color:var(--muted);font-size:11px;line-height:1.5}
.sat-preload-stage header>button,.preloaded-declaration header>button,.retention-flow header>button{flex:none;height:38px;padding:0 16px;border:0;border-radius:9px;background:var(--ink);color:#fff;font:700 12px inherit;cursor:pointer}
.sat-preload-stage header>button:hover,.preloaded-declaration header>button:hover,.retention-flow header>button:hover{background:var(--brand)}
.sat-preload-stage header>button:disabled,.preloaded-declaration header>button:disabled{opacity:.6;cursor:wait}
.preloaded-sat-result:empty{display:none}
#retentionFlowBody{margin-top:16px}

.retention-test-warning,.retention-disabled-warning{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:12px 14px;border-radius:11px;font-size:11px;line-height:1.4}
.retention-test-warning{border:1px solid #F3C66A;background:var(--gold-soft);color:#7A4800}
.retention-disabled-warning{border:1px solid #C7D3EE;background:var(--brand-soft);color:var(--brand-dark)}
.retention-test-warning svg,.retention-disabled-warning svg,.retention-test-warning i svg,.retention-disabled-warning i svg{width:16px;height:16px;flex:none}

.retention-taxpayer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-subtle)}
.retention-taxpayer>div small{display:block;margin-bottom:3px;color:var(--faint);font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.retention-taxpayer>div b{font-size:13px}
.retention-taxpayer>div span{display:block;margin-top:1px;color:var(--muted);font-size:11px}
.retention-taxpayer dl{display:flex;flex-wrap:wrap;gap:18px;margin:0}
.retention-taxpayer dl div{display:flex;flex-direction:column;gap:2px}
.retention-taxpayer dt{margin:0;color:var(--faint);font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.retention-taxpayer dd{margin:0;color:var(--ink);font-size:11.5px;font-weight:700}
.retention-taxpayer dd.valid{color:var(--success)}

.retention-step{display:flex;align-items:center;gap:12px;margin:18px 0 12px}
.retention-step span{display:grid;flex:none;width:26px;height:26px;place-items:center;border-radius:50%;background:var(--brand);color:#fff;font:800 12px "Poppins",sans-serif}
.retention-step h4{margin:0 0 2px;font-size:13px}
.retention-step p{margin:0;color:var(--muted);font-size:11px}

.retention-obligations{display:grid;gap:10px}
.retention-obligations button{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:.15s}
.retention-obligations button:hover:not(:disabled){border-color:var(--brand);box-shadow:0 8px 20px rgba(14,27,46,.08)}
.retention-obligations button:disabled{opacity:.5;cursor:not-allowed}
.retention-obligations button>svg:first-child{flex:none;width:18px;height:18px;color:var(--brand)}
.retention-obligations button span{display:flex;flex:1;flex-direction:column;gap:2px}
.retention-obligations button b{font-size:12.5px}
.retention-obligations button small{color:var(--muted);font-size:10.5px}
.retention-obligations button>svg:last-child{flex:none;width:16px;height:16px;color:var(--faint)}

.retention-capture{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin-top:14px}
.retention-total{display:flex;align-items:center;justify-content:space-between;margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-subtle)}
.retention-total span{display:flex;flex-direction:column;gap:2px;color:var(--ink);font-size:11px;font-weight:700}
.retention-total span small{color:var(--muted);font-size:9.5px;font-weight:500}
.retention-total b{color:var(--ink);font:800 20px "Poppins",sans-serif}

.phase-primary{width:100%;height:48px;border:0;border-radius:10px;background:var(--ink);color:#fff;font:700 13px inherit;cursor:pointer;transition:.15s}
.phase-primary:hover{background:var(--brand)}
.phase-primary:disabled{opacity:.6;cursor:wait}

.retention-preview-card{margin-top:20px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface-subtle)}
.retention-preview-card header{align-items:flex-start}
.retention-preview-card header em{flex:none;padding:5px 10px;border-radius:20px;background:var(--gold-soft);color:#9A5A00;font-size:9.5px;font-weight:700;font-style:normal}
.retention-preview-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin:16px 0}
.retention-preview-card dt{margin:0;color:var(--faint);font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.retention-preview-card dd{margin:2px 0 0;overflow:hidden;color:var(--ink);font-size:11.5px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.retention-preview-card table{width:100%;margin:14px 0;border:1px solid var(--line);border-collapse:collapse;border-radius:10px;overflow:hidden;background:#fff}
.retention-preview-card td{padding:10px 14px;border-top:1px solid var(--line);font-size:11.5px}
.retention-preview-card td:last-child{text-align:right;font-weight:700}
.retention-preview-card tbody tr:first-child td{border-top:0}
.retention-preview-card tfoot td{border-top:0;background:var(--ink);color:#fff;font-size:12.5px;font-weight:800}
.retention-confirm{display:flex;align-items:flex-start;gap:10px;margin:16px 0;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:0;text-transform:none}
.retention-confirm input{width:auto;height:auto;margin-top:2px}
#retentionSubmissionState{margin-top:16px}

.retention-ready,.retention-test-result,.retention-complete{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:12px}
.retention-ready{background:var(--brand-soft);color:var(--brand-dark)}
.retention-ready svg{flex:none;width:20px;height:20px}
.retention-ready div{flex:1}
.retention-ready b{display:block;margin-bottom:2px;font-size:12.5px}
.retention-ready p{margin:0;color:var(--muted);font-size:11px}
.retention-ready button{display:inline-flex;align-items:center;gap:8px;flex:none;height:38px;padding:0 16px;border:0;border-radius:9px;background:var(--ink);color:#fff;font:700 12px inherit;cursor:pointer}
.retention-ready button:disabled{background:var(--line-strong);color:var(--faint);cursor:not-allowed}
.construction-chip{display:inline-flex;align-items:center;flex:none;padding:3px 8px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--faint);font-size:8px;font-style:normal;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.retention-ready button:hover{background:var(--brand)}
.retention-test-result{flex-direction:column;align-items:flex-start;gap:4px;background:var(--gold-soft);color:#7A4800}
.retention-test-result p{margin:0;font-size:11px}
.retention-complete{flex-direction:column;align-items:flex-start;gap:4px;background:var(--success-soft);color:#0F6B31}
.retention-complete p{margin:0;font-size:11px}

.retention-history{margin-top:22px}
.retention-history header{margin-bottom:10px}
.retention-history header span{align-self:flex-start;color:var(--faint);font-size:9px;font-weight:700}
.retention-history-table{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.retention-history-table table{width:100%;min-width:640px;border-collapse:collapse}
.retention-history-table th{padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface-subtle);color:var(--faint);font-size:9px;font-weight:700;letter-spacing:.05em;text-align:left;text-transform:uppercase}
.retention-history-table td{padding:11px 14px;border-top:1px solid var(--line);color:var(--ink);font-size:11.5px}
.retention-history-table tbody tr:first-child td{border-top:0}
.retention-history-table td span[class^="status-"]{display:inline-block;padding:4px 9px;border-radius:20px;font-size:9.5px;font-weight:700}
.status-awaiting-confirmation{background:var(--gold-soft);color:#9A5A00}
.status-submitting{background:var(--brand-soft);color:var(--brand)}
.status-completed,.status-test-completed{background:var(--success-soft);color:#0F6B31}
.status-failed,.status-requires-review{background:var(--danger-bg);color:var(--danger-ink)}
.retention-send-action{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--brand);font:700 10.5px inherit;cursor:pointer}
.retention-send-action:hover:not(:disabled){background:var(--brand-soft)}
.retention-send-action:disabled{color:var(--faint);cursor:not-allowed}
.retention-send-action svg{width:13px;height:13px}
.retention-history-table a{display:inline-grid;width:30px;height:30px;place-items:center;border:1px solid var(--line-strong);border-radius:8px;color:var(--brand);text-decoration:none}
.retention-history-table a:hover{background:var(--brand-soft)}
.retention-history-table a svg{width:14px;height:14px}

.preloaded-sat-summary header span{flex:none;align-self:flex-start;color:var(--faint);font-size:9px;font-weight:700}
.preloaded-sat-list{display:grid;gap:10px;margin:16px 0}
.preloaded-sat-list article{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;flex-wrap:wrap}
.preloaded-sat-list article>span{display:grid;flex:none;width:34px;height:34px;place-items:center;border-radius:9px;background:var(--brand-soft);color:var(--brand)}
.preloaded-sat-list article>span svg{width:16px;height:16px}
.preloaded-sat-list article>div{flex:1;min-width:160px}
.preloaded-sat-list article b{display:block;font-size:12px}
.preloaded-sat-list article small{color:var(--muted);font-size:10.5px}
.preloaded-sat-list dl{display:flex;flex:none;gap:16px;margin:0}
.preloaded-sat-list dt{margin:0;color:var(--faint);font-size:8.5px;font-weight:700;text-transform:uppercase}
.preloaded-sat-list dd{margin:1px 0 0;color:var(--ink);font-size:10.5px;font-weight:600}
.preloaded-sat-list em{flex:none;padding:4px 9px;border-radius:20px;background:var(--gold-soft);color:#9A5A00;font-size:9px;font-weight:700;font-style:normal}
.preloaded-sat-summary footer{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);color:var(--faint);font-size:10px}
.preloaded-sat-summary footer svg{width:13px;height:13px;color:var(--success)}

@media(max-width:800px){
  .sat-preload-stage header,.preloaded-declaration header,.retention-flow header{flex-direction:column;align-items:stretch}
  .sat-preload-stage header>button,.preloaded-declaration header>button,.retention-flow header>button{width:100%}
  .retention-capture{grid-template-columns:1fr}
  .retention-taxpayer{flex-direction:column;align-items:flex-start}
  .retention-preview-card dl{grid-template-columns:1fr}
  .preloaded-sat-list article{flex-direction:column;align-items:flex-start}
  .preloaded-sat-list dl{flex-wrap:wrap}
}

/* ================= BANNER DE IMPERSONACIÓN ================= */
.impersonation-banner{position:fixed;top:0;left:0;right:0;z-index:2000;display:flex;align-items:center;justify-content:center;gap:16px;padding:10px 16px;background:#f59e0b;color:#1a1200;font-size:13px;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.impersonation-banner span{display:flex;align-items:center;gap:8px}
.impersonation-banner svg{width:16px;height:16px}
.impersonation-banner button{height:30px;padding:0 14px;border:0;border-radius:7px;background:#1a1200;color:#fff;font-weight:700;cursor:pointer}
body:has(#impersonationBanner:not([hidden])) #loginScreen,body:has(#impersonationBanner:not([hidden])) #appScreen{margin-top:42px}

/* ================= INDICADOR DE PROGRESO GLOBAL ================= */
.global-process-indicator{position:fixed;left:50%;bottom:26px;z-index:1100;display:flex;align-items:center;gap:14px;padding:12px 22px 12px 12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-md);opacity:0;pointer-events:none;transform:translateX(-50%) translateY(16px);transition:.25s}
.global-process-indicator.show{opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.global-process-indicator .process-ring{position:relative;display:grid;flex:none;width:44px;height:44px;place-items:center}
.global-process-indicator .process-ring svg{width:44px;height:44px;transform:rotate(-90deg)}
.global-process-indicator .process-ring circle{fill:none;stroke:var(--line);stroke-width:4}
.global-process-indicator .process-ring-value{stroke:var(--brand);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transition:stroke-dashoffset .3s ease}
.global-process-indicator .process-ring b{position:absolute;color:var(--ink);font:800 10px "Poppins",sans-serif}
.global-process-indicator>div:last-child{display:flex;flex-direction:column;gap:2px;min-width:180px}
.global-process-indicator strong{color:var(--ink);font-size:12.5px}
.global-process-indicator span{color:var(--muted);font-size:11px}
.global-process-indicator.complete .process-ring-value{stroke:var(--success)}
.global-process-indicator.complete strong{color:#0F6B31}
.global-process-indicator.error .process-ring-value{stroke:var(--danger-ink)}
.global-process-indicator.error strong{color:var(--danger-ink)}
@media(max-width:640px){.global-process-indicator{left:16px;right:16px;width:auto;transform:translateY(16px)}.global-process-indicator.show{transform:translateY(0)}}
.onboarding-flow{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:24px;background:rgba(12,26,51,.58);backdrop-filter:blur(12px);overflow:auto}.onboarding-dialog,.plan-shop{box-sizing:border-box;width:min(1120px,100%);max-height:calc(100vh - 40px);padding:clamp(20px,3vw,36px);border:1px solid rgba(255,255,255,.85);border-radius:24px;background:#fff;box-shadow:0 30px 90px rgba(5,22,50,.28);overflow:auto}.onboarding-dialog>header span,.plan-shop>header span{color:#0961d7;font-size:.72rem;font-weight:850;letter-spacing:.14em}.onboarding-dialog h1,.plan-shop h1{margin:7px 0;font-size:clamp(1.7rem,3vw,2.55rem);letter-spacing:-.035em}.onboarding-dialog>header p,.plan-shop>header p{max-width:800px;margin:0;color:#68768a;line-height:1.55}.onboarding-dialog>nav{display:flex;gap:6px;margin:22px 0 10px;padding:5px;border-radius:11px;background:#f1f4f8}.onboarding-dialog>nav button{flex:1;min-height:40px;border:0;border-radius:8px;background:transparent;color:#66758a;font-weight:800}.onboarding-dialog>nav button.active{background:#fff;color:#075fd5;box-shadow:0 2px 10px rgba(20,43,76,.1)}.legal-copy{height:min(36vh,360px);padding:18px;border:1px solid #dce4ee;border-radius:12px;background:#fbfcfe;overflow:auto}.legal-copy pre{margin:0;color:#314158;font:400 .86rem/1.7 Inter,system-ui,sans-serif;white-space:pre-wrap}.legal-consents{display:grid;gap:8px;margin:16px 0}.legal-consents label{display:flex;align-items:flex-start;gap:9px;color:#314158;font-size:.84rem}.legal-consents input{width:17px;height:17px;margin-top:2px;accent-color:#0961d7}.legal-signature{display:grid;grid-template-columns:1.2fr repeat(3,minmax(0,1fr));align-items:end;gap:10px;padding:15px;border-radius:13px;background:#f3f7fd}.legal-signature>div{display:flex;flex-direction:column}.legal-signature small{margin-top:4px;color:#718097}.legal-signature label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#53627a;font-size:.7rem;font-weight:800;text-transform:uppercase}.legal-signature input{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:8px;border:1px solid #cad6e6;border-radius:8px;background:#fff}.onboarding-dialog form>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.onboarding-dialog form>footer small{color:#7a8799}.onboarding-dialog form>footer button,.plan-shop article>button{min-height:44px;padding:0 18px;border:0;border-radius:10px;background:#0961d7;color:#fff;font-weight:850}.plan-shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));align-items:stretch;gap:14px;margin-top:24px}.plan-shop article{position:relative;display:flex;min-width:0;flex-direction:column;padding:22px;border:1px solid #dce4ee;border-radius:16px;background:#fff}.plan-shop article.featured{border:2px solid #0961d7;box-shadow:0 15px 40px rgba(9,97,215,.12)}.plan-shop article>em{position:absolute;top:12px;right:12px;padding:5px 8px;border-radius:20px;background:#e9f2ff;color:#075fd5;font-size:.64rem;font-style:normal;font-weight:900}.plan-shop article>small{color:#718097;font-weight:800;letter-spacing:.08em}.plan-shop article h2{margin:8px 0 4px;overflow-wrap:anywhere}.plan-shop article p{min-height:52px;color:#6a778a;line-height:1.5}.plan-shop article>b{margin:7px 0;font-size:1.45rem}.plan-shop article ul{display:grid;gap:9px;margin:12px 0 20px;padding:0;list-style:none}.plan-shop article li:before{content:'✓';margin-right:8px;color:#16a052;font-weight:900}.plan-shop article>button{width:100%;margin-top:auto}.plan-shop .demo-note{margin-top:8px;text-align:center}@media(max-width:800px){.onboarding-flow{place-items:start;padding:0}.onboarding-dialog,.plan-shop{max-height:none;min-height:100vh;border-radius:0}.legal-signature{grid-template-columns:1fr}.onboarding-dialog form>footer{align-items:stretch;flex-direction:column}.onboarding-dialog form>footer button{width:100%}.legal-copy{height:32vh}}

/* Firma electrónica y acuse PDF */
.legal-dialog-v2{width:min(1080px,100%);padding:26px 30px 0;overflow:auto;background:linear-gradient(180deg,#fff 0,#fbfdff 100%)}
.legal-onboarding-header{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:16px}.legal-header-icon{display:grid!important;width:50px;height:50px;place-items:center;border-radius:15px;background:linear-gradient(145deg,#eaf3ff,#dbeaff);color:#075fd5!important;box-shadow:inset 0 0 0 1px #cfe1fb}.legal-header-icon svg{width:25px;height:25px}.legal-onboarding-header h1{margin:3px 0 4px;font-size:clamp(1.55rem,2.6vw,2.15rem)}.legal-onboarding-header p{font-size:.84rem}.legal-onboarding-header>em{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #ccebd8;border-radius:999px;background:#eefaf2;color:#157b40;font-size:.7rem;font-style:normal;font-weight:850;white-space:nowrap}.legal-onboarding-header>em svg{width:15px}
.legal-progress{display:flex;align-items:center;justify-content:center;gap:10px;margin:16px 0}.legal-progress span{display:flex;align-items:center;gap:7px;color:#8190a5;font-size:.7rem;font-weight:850;text-transform:uppercase}.legal-progress span b{display:grid;width:23px;height:23px;place-items:center;border-radius:50%;background:#e9eef5;color:#6c7a8e}.legal-progress span.active{color:#075fd5}.legal-progress span.active b{background:#075fd5;color:#fff;box-shadow:0 5px 13px rgba(7,95,213,.23)}.legal-progress>i{width:54px;height:1px;background:#dce4ee}
.legal-document-shell{overflow:hidden;border:1px solid #dce5f0;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(25,48,84,.05)}.legal-document-shell>nav{display:flex;padding:5px;border-bottom:1px solid #e2e9f2;background:#f1f5fa}.legal-document-shell>nav button{display:flex;flex:1;align-items:center;justify-content:center;gap:8px;min-height:40px;border:0;border-radius:10px;background:transparent;color:#66768d;font-weight:800;cursor:pointer;transition:.18s}.legal-document-shell>nav button svg{width:16px}.legal-document-shell>nav button:hover{color:#075fd5}.legal-document-shell>nav button.active{background:#fff;color:#075fd5;box-shadow:0 3px 11px rgba(25,52,91,.1)}.legal-dialog-v2 .legal-copy{height:min(27vh,260px);padding:0 18px 18px;border:0;border-radius:0;background:#fff}.legal-copy-label{position:sticky;z-index:1;top:0;display:flex;align-items:center;justify-content:space-between;margin:0 -2px 12px;padding:12px 2px 9px;border-bottom:1px solid #edf1f6;background:#fff}.legal-copy-label span{color:#075fd5;font-size:.62rem;font-weight:900;letter-spacing:.1em}.legal-copy-label small{color:#8a96a7;font-size:.68rem}.legal-dialog-v2 .legal-copy pre{font-size:.78rem;line-height:1.65}
.legal-dialog-v2 .legal-consents{grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0}.legal-dialog-v2 .legal-consents label{position:relative;align-items:center;min-height:66px;padding:11px 12px;border:1px solid #dde5ef;border-radius:12px;background:#fff;cursor:pointer;transition:.18s}.legal-dialog-v2 .legal-consents label:hover{border-color:#9ec0ef;background:#f8fbff}.legal-dialog-v2 .legal-consents input{flex:none;width:19px;height:19px}.legal-dialog-v2 .legal-consents span{display:flex;min-width:0;flex-direction:column;gap:3px}.legal-dialog-v2 .legal-consents b{font-size:.73rem}.legal-dialog-v2 .legal-consents small{color:#7a879a;font-size:.64rem;line-height:1.35}
.legal-signature-card{overflow:hidden;border:1px solid #d4e2f5;border-radius:15px;background:#f6f9fe}.legal-signature-card>header{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 13px;border-bottom:1px solid #dce7f5;background:linear-gradient(90deg,#edf5ff,#f8fbff)}.legal-signature-card>header>span{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#075fd5;color:#fff}.legal-signature-card>header svg{width:18px}.legal-signature-card>header div{display:flex;flex-direction:column}.legal-signature-card>header b{color:#142542;font-size:.82rem}.legal-signature-card>header small{margin-top:2px;color:#758399;font-size:.66rem}.legal-signature-card>header em{padding:5px 8px;border-radius:7px;background:#e4efff;color:#0759c8;font-size:.62rem;font-style:normal;font-weight:900}.legal-signature-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;padding:12px}.legal-signature-fields>label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#56657b;font-size:.63rem;font-weight:850;text-transform:uppercase}.legal-file-control,.legal-password-control{position:relative;display:flex;min-width:0;height:43px;align-items:center;gap:8px;padding:0 11px;border:1px solid #cbd8e8;border-radius:10px;background:#fff;color:#52627a;text-transform:none;transition:.18s}.legal-file-control:hover,.legal-password-control:focus-within{border-color:#6e9fe1;box-shadow:0 0 0 3px rgba(7,95,213,.09)}.legal-file-control svg,.legal-password-control svg{width:17px;flex:none;color:#075fd5}.legal-file-control b{overflow:hidden;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.legal-file-control input[type=file]{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.legal-password-control input{width:100%;height:100%;padding:0;border:0;outline:0;background:transparent;font:inherit;font-size:.75rem;text-transform:none}
.legal-dialog-v2 .legal-sign-footer{position:sticky;z-index:3;bottom:0;display:flex;align-items:center;justify-content:space-between;margin:12px -30px 0;padding:13px 30px;border-top:1px solid #dce5ef;background:rgba(255,255,255,.96);box-shadow:0 -8px 24px rgba(22,44,78,.07);backdrop-filter:blur(16px)}.legal-sign-footer>div{display:flex;align-items:center;gap:9px}.legal-sign-footer>div svg{width:21px;color:#075fd5}.legal-sign-footer>div small{color:#7a8799;font-size:.63rem;line-height:1.45}.legal-sign-footer button{display:flex!important;min-width:248px;min-height:48px!important;align-items:center;justify-content:center;gap:9px;padding:0 18px!important;border-radius:12px!important;background:linear-gradient(135deg,#0869e6,#0753c5)!important;box-shadow:0 10px 22px rgba(7,87,199,.24);cursor:pointer;transition:.18s}.legal-sign-footer button:hover{transform:translateY(-1px);box-shadow:0 13px 27px rgba(7,87,199,.3)}.legal-sign-footer button:disabled{opacity:.7;cursor:wait;transform:none}.legal-sign-footer button svg{width:17px}
.legal-success{width:min(690px,100%);padding:42px;border:1px solid rgba(255,255,255,.86);border-radius:25px;background:#fff;box-shadow:0 30px 90px rgba(5,22,50,.3);text-align:center}.legal-success-seal{display:grid;width:76px;height:76px;margin:0 auto 16px;place-items:center;border:7px solid #dff5e8;border-radius:50%;background:#daf2e4;color:#118347;box-shadow:0 0 0 1px #b9e3c9}.legal-success-seal svg{width:38px;height:38px}.legal-success>small{color:#148149;font-size:.68rem;font-weight:900;letter-spacing:.13em}.legal-success h1{margin:8px 0;font-size:clamp(1.7rem,4vw,2.35rem)}.legal-success>p{max-width:540px;margin:0 auto 23px;color:#6b788b;line-height:1.6}.legal-success dl{display:grid;grid-template-columns:1fr 1fr;margin:0;text-align:left;border:1px solid #dfe6ef;border-radius:14px;overflow:hidden}.legal-success dl div{padding:12px 14px;border-bottom:1px solid #e6ebf2}.legal-success dl div:nth-child(odd){border-right:1px solid #e6ebf2}.legal-success dt{color:#7e8999;font-size:.62rem;font-weight:850;text-transform:uppercase}.legal-success dd{overflow:hidden;margin:4px 0 0;color:#142542;font-size:.78rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.legal-success-hash{display:flex;align-items:center;gap:11px;margin:14px 0;padding:12px;border-radius:12px;background:#f1f6fd;text-align:left}.legal-success-hash>svg{width:24px;flex:none;color:#075fd5}.legal-success-hash span{display:flex;min-width:0;flex-direction:column;gap:3px}.legal-success-hash small{color:#708097;font-size:.58rem;font-weight:850}.legal-success-hash b{overflow:hidden;color:#244064;font:600 .65rem monospace;text-overflow:ellipsis;white-space:nowrap}.legal-success footer{display:grid;grid-template-columns:1fr 1fr;gap:10px}.legal-success footer a,.legal-success footer button{display:flex;min-height:48px;align-items:center;justify-content:center;gap:8px;border-radius:11px;font-size:.78rem;font-weight:850;text-decoration:none;cursor:pointer}.legal-success footer a{border:1px solid #b8cce8;background:#fff;color:#0759ca}.legal-success footer button{border:0;background:#075fd5;color:#fff}.legal-success footer svg{width:17px}.legal-success-note{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:15px!important;color:#718097!important;letter-spacing:0!important}.legal-success-note svg{width:14px}
@media(max-width:800px){.legal-dialog-v2{padding:20px 16px 0}.legal-onboarding-header{grid-template-columns:44px 1fr}.legal-header-icon{width:42px;height:42px}.legal-onboarding-header>em{display:none}.legal-dialog-v2 .legal-consents,.legal-signature-fields{grid-template-columns:1fr}.legal-dialog-v2 .legal-sign-footer{align-items:stretch;flex-direction:column;margin-inline:-16px;padding:12px 16px}.legal-sign-footer>div{display:none}.legal-sign-footer button{width:100%;min-width:0}.legal-copy-label small{display:none}.legal-success{min-height:100vh;padding:28px 18px;border-radius:0}.legal-success dl,.legal-success footer{grid-template-columns:1fr}.legal-success dl div:nth-child(odd){border-right:0}.legal-success footer a,.legal-success footer button{width:100%}}
.billing-notice{margin-bottom:16px;padding:14px 16px;border:1px solid #cfe0f5;border-radius:12px;background:#f4f8fe}.billing-notice p{margin:5px 0 0;color:#5f6e82;line-height:1.5}.billing-notice a{color:#075fd5;font-weight:800}.billing-workspace{margin-top:16px}.billing-tabs{display:flex;gap:5px;padding:5px;border:1px solid #dce4ee;border-radius:11px;background:#f2f5f9;overflow:auto}.billing-tabs button{padding:9px 12px;border:0;border-radius:7px;background:transparent;color:#66758a;font-weight:800;white-space:nowrap}.billing-tabs button.active{background:#fff;color:#075fd5;box-shadow:0 2px 8px rgba(20,40,70,.09)}#billingPanel{margin-top:12px}.billing-editor,.billing-history{padding:18px;border:1px solid #dce4ee;border-radius:13px;background:#fff}.billing-editor>header,.billing-history>header{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:15px}.billing-editor header small,.billing-history header small{color:#1262d3;font-size:.68rem;font-weight:900;letter-spacing:.1em}.billing-editor h3,.billing-history h3{margin:4px 0}.billing-editor header p{margin:4px 0;color:#6b788b}.billing-editor header>span{padding:5px 8px;border-radius:20px;background:#eef2f7;color:#66758a;font-size:.7rem;font-weight:800}.billing-editor header>span.ready{background:#e4f7eb;color:#148442}.billing-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.billing-fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.billing-fields label,.billing-item label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#526178;font-size:.7rem;font-weight:850;text-transform:uppercase}.billing-fields input,.billing-fields select,.billing-fields textarea,.billing-item input,.billing-item select{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid #ccd7e6;border-radius:8px;background:#fbfcfe;color:#1f304b;font:inherit;text-transform:none}.billing-fields .wide{grid-column:1/-1}.billing-editor>button,.billing-empty button{min-height:40px;margin-top:14px;padding:0 15px;border:0;border-radius:8px;background:#075fd5;color:#fff;font-weight:850}.billing-editor>button.secondary{border:1px solid #cbd7e7;background:#fff;color:#24456f}.billing-simple-list{margin-top:10px;border:1px solid #dfe6ef;border-radius:11px;background:#fff;overflow:hidden}.billing-simple-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid #e6ebf2}.billing-simple-list article:last-child{border-bottom:0}.billing-simple-list article div{display:flex;min-width:0;flex-direction:column}.billing-simple-list small{color:#758196}.billing-item{display:grid;grid-template-columns:minmax(0,1fr) 130px 38px;align-items:end;gap:9px;margin:10px 0;padding:11px;border:1px solid #dfe6ef;border-radius:10px;background:#f8fafd}.billing-item>button{width:38px;height:40px;border:1px solid #efc8c8;border-radius:8px;background:#fff;color:#c52d2d;font-size:1.25rem}.billing-issue>footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding-top:15px;border-top:1px solid #e3e8ef}.billing-issue>footer div{display:flex;flex-direction:column}.billing-issue>footer b{font-size:1.4rem}.billing-issue>footer button{min-height:44px;padding:0 18px;border:0;border-radius:9px;background:#075fd5;color:#fff;font-weight:900}.billing-history>div>article{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 8px;border-bottom:1px solid #e4e9f0}.billing-history .billing-state{width:8px;height:8px;border-radius:50%;background:#18a34a}.billing-history article.failed .billing-state{background:#df3030}.billing-history article div{display:flex;min-width:0;flex-direction:column}.billing-history article small{color:#748196;overflow-wrap:anywhere}.billing-history nav{display:flex;gap:5px}.billing-history nav a{display:grid;place-items:center;width:34px;height:34px;border:1px solid #d2dce9;border-radius:8px;color:#1759b7}.billing-history nav svg{width:16px}.billing-empty{padding:30px;border:1px dashed #cbd7e6;border-radius:12px;text-align:center}.billing-empty p{color:#6b788c}@media(max-width:760px){.billing-fields,.billing-fields.three{grid-template-columns:1fr}.billing-fields .wide{grid-column:auto}.billing-item{grid-template-columns:1fr 90px 38px}.billing-history>div>article{grid-template-columns:8px minmax(0,1fr) auto}.billing-history article>strong{grid-column:2}.billing-history nav{grid-column:3;grid-row:1/3}.billing-issue>footer{align-items:stretch;flex-direction:column}.billing-issue>footer button{width:100%}}
/* Facturación guiada */
.billing-company-context{max-width:none}.billing-assistant-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.billing-assistant,.billing-live>div{background:#fff;border:1px solid var(--line,#dce3ed);border-radius:18px;box-shadow:0 12px 28px rgba(20,39,74,.07)}.billing-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:16px}.billing-steps button{min-height:64px;border:1px solid #dce3ed;background:#fff;color:#647084;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.billing-steps button span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#edf1f6;font-weight:800}.billing-steps button.active{border-color:#0c5bd7;background:#eff5ff;color:#0759d3}.billing-steps button.active span,.billing-steps button.done span{background:#0759d3;color:#fff}.billing-step{padding:18px;border-top:1px solid #e6ebf2;min-height:220px}.billing-step h3{margin:0 0 5px;font-size:1.22rem}.billing-step>p{margin:0 0 18px;color:#687489}.billing-fields input.valid{color:#168347}.billing-fields input.invalid{color:#d42b2b}.billing-wizard-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px;border-top:1px solid #e6ebf2}.billing-live{position:sticky;top:18px}.billing-live>small{display:block;margin:0 0 9px;font-size:.75rem;font-weight:800;letter-spacing:.08em;color:#687489}.billing-live>div{padding:20px}.billing-live header{display:grid;grid-template-columns:1fr auto;gap:3px 12px;padding-bottom:13px;border-bottom:2px solid #1767dc}.billing-live header b{font-size:1rem}.billing-live header span{font-size:.7rem;background:#e7f0ff;color:#0759d3;padding:5px 8px;border-radius:9px}.billing-live header small{grid-column:1/-1}.billing-live>div>p{font-size:.78rem}.billing-live>div>div p,.billing-live footer p{display:flex;justify-content:space-between;gap:12px;font-size:.78rem}.billing-live footer{border-top:1px solid #e5eaf1;padding-top:8px}.billing-live footer .total{font-size:1rem;font-weight:800}.billing-fields.concept{grid-template-columns:minmax(260px,1fr) 150px 42px;align-items:end}.ba-concept{padding:14px;border:1px solid #e2e8f0;border-radius:13px;margin-bottom:10px}.ba-concept button{height:42px;width:42px;background:#fff;color:#db3030;border:1px solid #f1c8c8}.ba-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.billing-warning{color:#b34c00;font-size:.82rem}.billing-history nav button{display:grid;place-items:center;background:transparent;color:#d93030;border:0;padding:6px}.billing-history article.cancellation_requested{background:#fff8ed}.billing-history article.cancellation_requested .billing-state{background:#f59e0b}
@media(max-width:1000px){.billing-assistant-layout{grid-template-columns:1fr}.billing-live{position:static}.billing-live>div{max-width:none}}
@media(max-width:680px){.billing-steps{padding:10px;gap:5px}.billing-steps button{font-size:.74rem;min-height:56px}.billing-step{padding:14px}.billing-fields.concept{grid-template-columns:1fr 90px 40px}.billing-wizard-actions,.ba-actions{flex-wrap:wrap}.billing-live{display:none}}
.edit-csd-fields{margin:14px 0;padding:16px;border:1px solid #dce4ef;border-radius:14px;background:#f8fafc}.edit-csd-fields legend{padding:0 7px;font-weight:800;color:#142343}.edit-csd-fields>p{margin:0 0 13px;color:#68758a;font-size:.82rem}.edit-csd-fields .file-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.edit-csd-fields input[type=file]{padding:9px;background:#fff}.edit-csd-status{margin-top:10px;padding:10px 12px;border-radius:10px;background:#edf5ff;color:#1657ad;font-size:.8rem;font-weight:700}@media(max-width:680px){.edit-csd-fields .file-fields{grid-template-columns:1fr}}
.certificate-module-tabs{display:flex;gap:6px;margin:0 0 16px;padding:5px;width:max-content;max-width:100%;border:1px solid #dfe6ef;border-radius:13px;background:#f2f5f9}.certificate-module-tabs button{display:flex;align-items:center;gap:8px;position:relative;padding:10px 15px;border:0;border-radius:9px;background:transparent;color:#637086;font-weight:750}.certificate-module-tabs button.active{background:#fff;color:#0a5bcf;box-shadow:0 3px 10px rgba(22,49,89,.1)}.certificate-module-tabs svg{width:17px}.certificate-tab-dot{width:8px;height:8px;border-radius:50%;background:#94a3b8}.certificate-tab-dot.valid{background:#18a957}.certificate-tab-dot.warning{background:#f59e0b}.certificate-tab-dot.expired,.certificate-tab-dot.missing{background:#dc3434}.certificate-tab-panel{animation:certificateTabIn .22s ease}.certificate-vigency-card{overflow:hidden;border:1px solid #dfe5ed;border-radius:20px;background:#fff;box-shadow:0 14px 34px rgba(25,44,78,.08)}.certificate-vigency-card>header{display:flex;align-items:center;gap:15px;padding:22px 24px;border-bottom:1px solid #e6ebf1}.certificate-vigency-card.valid>header{background:linear-gradient(110deg,#effbf4,#fff)}.certificate-vigency-card.warning>header{background:linear-gradient(110deg,#fff8e8,#fff)}.certificate-vigency-card.expired>header,.certificate-vigency-card.missing>header{background:linear-gradient(110deg,#fff1f1,#fff)}.certificate-vigency-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e7f0ff;color:#0b5ed7}.certificate-vigency-icon svg{width:24px;height:24px}.certificate-vigency-card header>div:nth-child(2){min-width:0;flex:1}.certificate-vigency-card header small{font-size:.68rem;letter-spacing:.11em;color:#718096;font-weight:800}.certificate-vigency-card header h2{margin:3px 0;font-size:1.35rem}.certificate-vigency-card header p{margin:0;color:#647084}.certificate-vigency-badge{padding:7px 11px;border-radius:999px;font-size:.75rem;font-weight:850}.valid .certificate-vigency-badge{background:#dff6e8;color:#117c3d}.warning .certificate-vigency-badge{background:#fff0c9;color:#a65a00}.expired .certificate-vigency-badge,.missing .certificate-vigency-badge{background:#ffe1e1;color:#bd2525}.certificate-vigency-body{display:grid;grid-template-columns:245px 1fr;gap:24px;padding:24px}.certificate-traffic{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;border-right:1px solid #e5eaf1;text-align:center}.certificate-traffic-ring{--ring-color:#16a358;display:grid;place-content:center;width:128px;height:128px;border-radius:50%;background:conic-gradient(var(--ring-color) var(--certificate-progress),#e8edf3 0);position:relative}.warning .certificate-traffic-ring{--ring-color:#f59e0b}.expired .certificate-traffic-ring,.missing .certificate-traffic-ring{--ring-color:#dc3434}.certificate-traffic-ring:before{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}.certificate-traffic-ring strong,.certificate-traffic-ring small{position:relative;z-index:1}.certificate-traffic-ring strong{font-size:2rem;line-height:1}.certificate-traffic-ring small{text-transform:uppercase;color:#647084;font-weight:750}.certificate-traffic p{max-width:210px;margin:14px 0 0;color:#657187;font-size:.82rem;line-height:1.5}.certificate-vigency-body dl{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0}.certificate-vigency-body dl div{padding:13px;border-bottom:1px solid #e9edf2}.certificate-vigency-body dt{font-size:.67rem;letter-spacing:.08em;text-transform:uppercase;color:#8290a4;font-weight:800}.certificate-vigency-body dd{margin:5px 0 0;color:#152441;font-weight:750}.certificate-vigency-card>footer{display:flex;align-items:center;gap:12px;padding:15px 24px;border-top:1px solid #e6ebf1;background:#fafbfd}.certificate-vigency-card footer p{flex:1;margin:0;color:#6b7789;font-size:.78rem}.certificate-semaphore{display:flex;gap:4px}.certificate-semaphore i{width:10px;height:10px;border-radius:50%;background:#16a358}.certificate-semaphore i:nth-child(2){background:#f59e0b}.certificate-semaphore i:nth-child(3){background:#dc3434}@keyframes certificateTabIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:760px){.certificate-module-tabs{width:100%}.certificate-module-tabs button{flex:1;justify-content:center;padding:10px 8px}.certificate-vigency-card>header{align-items:flex-start;flex-wrap:wrap}.certificate-vigency-badge{margin-left:63px}.certificate-vigency-body{grid-template-columns:1fr;padding:16px}.certificate-traffic{border-right:0;border-bottom:1px solid #e5eaf1}.certificate-vigency-body dl{grid-template-columns:1fr}.certificate-vigency-card>footer{align-items:flex-start;flex-wrap:wrap}.certificate-vigency-card footer button{width:100%}}
.certificate-vigency-card>footer button[data-view-companies]{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 17px;border:1px solid #0b5fd7;border-radius:11px;background:linear-gradient(135deg,#0b64dc,#0753c5);color:#fff;font:inherit;font-size:.82rem;font-weight:800;letter-spacing:.01em;cursor:pointer;box-shadow:0 7px 16px rgba(11,95,215,.2);transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.certificate-vigency-card>footer button[data-view-companies]::before{content:"";width:15px;height:15px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center/contain no-repeat}.certificate-vigency-card>footer button[data-view-companies]:hover{transform:translateY(-1px);background:linear-gradient(135deg,#075bd0,#064ab0);box-shadow:0 10px 22px rgba(11,95,215,.28)}.certificate-vigency-card>footer button[data-view-companies]:active{transform:translateY(0);box-shadow:0 4px 10px rgba(11,95,215,.18)}.certificate-vigency-card>footer button[data-view-companies]:focus-visible{outline:3px solid rgba(38,119,232,.28);outline-offset:3px}@media(max-width:760px){.certificate-vigency-card>footer button[data-view-companies]{width:100%;min-height:46px}}

/* ================= VIGILANCIA SAT ================= */
.monitoring-dashboard{margin-top:4px}
.monitoring-alerts{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.monitoring-alert{display:grid;grid-template-columns:34px 1fr auto;align-items:start;gap:12px;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--faint);border-radius:12px;background:var(--surface)}
.monitoring-alert i{width:20px;height:20px;margin-top:2px}
.monitoring-alert b{display:block;margin-bottom:3px;color:var(--ink);font-size:.92rem}
.monitoring-alert p{margin:0 0 6px;color:var(--muted);font-size:.84rem;line-height:1.5}
.monitoring-alert small{color:var(--faint);font-size:.72rem}
.monitoring-alert--critical{border-left-color:var(--danger-ink);background:var(--danger-bg)}
.monitoring-alert--critical i{color:var(--danger-ink)}
.monitoring-alert--warning{border-left-color:#F59E0B;background:#FFF8E8}
.monitoring-alert--warning i{color:#9A5A00}
.monitoring-alert--info{border-left-color:var(--brand);background:var(--brand-soft)}
.monitoring-alert--info i{color:var(--brand)}
.monitoring-alert button{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);cursor:pointer}
.monitoring-alert button:hover{background:var(--success-soft);color:var(--success);border-color:transparent}
.monitoring-alert button svg{width:16px}
.monitoring-status-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.monitoring-status-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.monitoring-status-item b{display:block;color:var(--ink)}
.monitoring-status-item small{color:var(--faint)}
.monitoring-status-meta{display:flex;flex-direction:column;gap:2px;text-align:right}
.monitoring-status-item button{min-height:36px;padding:0 14px;border:1px solid #cbd7e7;border-radius:9px;background:var(--surface);color:var(--brand);font-weight:800;cursor:pointer}
.monitoring-status-item button:hover{background:var(--brand-soft)}
.monitoring-status-item button:disabled{opacity:.6;cursor:not-allowed}
@media(max-width:680px){.monitoring-status-item{flex-direction:column;align-items:stretch}.monitoring-status-meta{text-align:left}.monitoring-status-item button{width:100%}}

/* Selección obligatoria de contribuyente */
.taxpayer-required-modal{position:fixed;z-index:3600;inset:0;display:grid;place-items:center;padding:20px;background:rgba(8,20,43,.56);backdrop-filter:blur(9px);animation:taxpayerBackdropIn .18s ease}.taxpayer-required-modal>section{position:relative;width:min(520px,100%);padding:32px;border:1px solid rgba(255,255,255,.85);border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(4,18,44,.3);text-align:center;animation:taxpayerModalIn .28s cubic-bezier(.22,1,.36,1)}.taxpayer-required-close{position:absolute;top:14px;right:14px;display:grid;width:34px;height:34px;padding:0;place-items:center;border:0;border-radius:10px;background:#f1f4f8;color:#66758a;cursor:pointer}.taxpayer-required-close:hover{background:#e7eef8;color:#075fd5}.taxpayer-required-close svg{width:17px}.taxpayer-required-icon{display:grid;width:62px;height:62px;margin:0 auto 14px;place-items:center;border-radius:18px;background:linear-gradient(145deg,#e9f3ff,#d8e9ff);color:#075fd5;box-shadow:inset 0 0 0 1px #c9defb}.taxpayer-required-icon svg{width:29px;height:29px}.taxpayer-required-modal section>small{color:#075fd5;font-size:.64rem;font-weight:900;letter-spacing:.13em}.taxpayer-required-modal h2{margin:7px 0 8px;color:#10203c;font-size:1.55rem;letter-spacing:-.025em}.taxpayer-required-modal section>p{max-width:430px;margin:0 auto 19px;color:#6b788b;font-size:.84rem;line-height:1.6}.taxpayer-required-list{display:grid;gap:7px;margin:17px 0;text-align:left}.taxpayer-required-list>button{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:10px;width:100%;padding:9px 11px;border:1px solid #dce5ef;border-radius:11px;background:#fff;color:#152541;text-align:left;cursor:pointer;transition:.16s}.taxpayer-required-list>button:hover,.taxpayer-required-list>button:focus-visible{border-color:#8db6eb;background:#f6faff;outline:0;transform:translateY(-1px)}.taxpayer-required-list>button>span{display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:#e9f2ff;color:#075fd5;font-weight:900}.taxpayer-required-list>button>div{display:flex;min-width:0;flex-direction:column;gap:2px}.taxpayer-required-list b{overflow:hidden;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.taxpayer-required-list small{color:#78869a;font-size:.68rem}.taxpayer-required-list svg{width:16px;color:#075fd5}.taxpayer-required-modal footer{display:flex;justify-content:center;gap:9px;margin-top:17px}.taxpayer-required-modal footer button{display:flex;min-height:44px;align-items:center;justify-content:center;gap:7px;padding:0 15px;border:0;border-radius:10px;background:#075fd5;color:#fff;font-weight:850;cursor:pointer}.taxpayer-required-modal footer button.secondary{border:1px solid #cad8e9;background:#fff;color:#315172}.taxpayer-required-modal footer svg{width:16px}@keyframes taxpayerBackdropIn{from{opacity:0}to{opacity:1}}@keyframes taxpayerModalIn{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}@media(max-width:560px){.taxpayer-required-modal{padding:12px}.taxpayer-required-modal>section{padding:28px 17px 20px}.taxpayer-required-modal footer{flex-direction:column}.taxpayer-required-modal footer button{width:100%}}
.subscription-required-modal{position:fixed;z-index:3700;inset:0;display:grid;place-items:center;padding:20px;background:rgba(8,20,43,.52);backdrop-filter:blur(10px);animation:taxpayerBackdropIn .18s ease}.subscription-required-modal>section{position:relative;width:min(500px,100%);padding:30px;border:1px solid rgba(255,255,255,.86);border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 28px 80px rgba(4,18,44,.3);text-align:center;animation:taxpayerModalIn .28s cubic-bezier(.22,1,.36,1)}.subscription-required-close{position:absolute;top:14px;right:14px;display:grid;width:34px;height:34px;place-items:center;border:0;border-radius:10px;background:#eef3f9;color:#66758a;cursor:pointer}.subscription-required-mark{display:grid;width:62px;height:62px;margin:0 auto 14px;place-items:center;border-radius:18px;background:linear-gradient(145deg,#fff4e3,#ffe6bd);color:#c56b00;box-shadow:inset 0 0 0 1px #ffd39a}.subscription-required-modal small{color:#c56b00;font-size:.64rem;font-weight:900;letter-spacing:.13em}.subscription-required-modal h2{margin:7px 0 8px;color:#10203c;font-size:1.55rem;letter-spacing:-.025em}.subscription-required-modal p{max-width:410px;margin:0 auto 18px;color:#6b788b;font-size:.86rem;line-height:1.6}.subscription-required-modal dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 18px;text-align:left}.subscription-required-modal dl div{padding:11px;border:1px solid #dce6f2;border-radius:12px;background:#fff}.subscription-required-modal dt{color:#7a8799;font-size:.66rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.subscription-required-modal dd{margin:3px 0 0;color:#10203c;font-weight:850}.subscription-required-modal footer{display:flex;justify-content:center;gap:9px}.subscription-required-modal footer button{min-height:44px;padding:0 16px;border:0;border-radius:11px;background:#075fd5;color:#fff;font-weight:850;cursor:pointer}.subscription-required-modal footer button.secondary{border:1px solid #cad8e9;background:#fff;color:#315172}.subscription-required-modal footer span{display:block;padding:12px;border-radius:11px;background:#fff4e8;color:#9a5700;font-size:.82rem;font-weight:750}@media(max-width:560px){.subscription-required-modal{padding:12px}.subscription-required-modal>section{padding:28px 17px 20px}.subscription-required-modal dl{grid-template-columns:1fr}.subscription-required-modal footer{flex-direction:column}.subscription-required-modal footer button{width:100%}}

/* Plazo y bloqueo por firma legal */
.legal-signature-banner{position:fixed;z-index:2990;top:18px;left:50%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;width:min(760px,calc(100% - 28px));padding:13px 15px;border:1px solid #f2c66d;border-radius:15px;background:#fff9e9;color:#4b3916;box-shadow:0 16px 42px rgba(60,43,11,.2);transform:translateX(-50%)}.legal-signature-banner>svg{box-sizing:border-box;width:40px;height:40px;padding:10px;border-radius:11px;background:#ffedbd;color:#9b6500}.legal-signature-banner div{display:flex;min-width:0;flex-direction:column;gap:3px}.legal-signature-banner b{font-size:.82rem}.legal-signature-banner span{font-size:.72rem;line-height:1.45}.legal-signature-banner button{min-height:39px;padding:0 14px;border:0;border-radius:10px;background:#a56800;color:#fff;font-weight:850;cursor:pointer}.legal-signature-banner.blocked{z-index:3010;border-color:#ef9c9c;background:#fff2f2;color:#641d26}.legal-signature-banner.blocked>svg{background:#ffdada;color:#ba2638}.legal-signature-banner.blocked button{background:#c32336}.legal-deadline-notice{display:flex;align-items:flex-start;gap:11px;margin:12px 0;padding:11px 13px;border:1px solid #f0cc7d;border-radius:12px;background:#fff9e9;color:#5c4316}.legal-deadline-notice>svg{flex:none;width:20px;color:#a66b00}.legal-deadline-notice b{font-size:.76rem}.legal-deadline-notice p{margin:3px 0 0;font-size:.7rem;line-height:1.5}.legal-deadline-notice.blocked{border-color:#efaaaa;background:#fff2f2;color:#721f2a}.legal-deadline-notice.blocked>svg{color:#c32336}.legal-sign-actions{display:flex!important;align-items:center;gap:9px}.legal-sign-later{min-width:132px!important;min-height:46px!important;border:1px solid #f2c66d!important;background:#fff3cf!important;color:#8a5a00!important;box-shadow:0 8px 18px rgba(186,119,0,.12)!important}.legal-sign-later:hover{border-color:#d99a18!important;background:#ffe8a3!important;color:#6f4600!important;box-shadow:0 10px 22px rgba(186,119,0,.16)!important}.legal-sign-actions>.legal-sign-later+button{min-width:248px}.legal-dialog-v2 .legal-consents{grid-template-columns:1fr!important;gap:6px!important;margin:10px 0 14px!important;padding:10px 12px!important;border:1px solid #e2e8f0;border-radius:13px;background:#fbfcfe}.legal-dialog-v2 .legal-consents label{display:grid!important;grid-template-columns:16px minmax(0,1fr);align-items:start!important;min-height:0!important;margin:0!important;padding:6px 2px!important;border:0!important;border-radius:8px!important;background:transparent!important}.legal-dialog-v2 .legal-consents input{width:14px!important;height:14px!important;margin:2px 0 0!important;accent-color:#0b5dcc}.legal-dialog-v2 .legal-consents span{gap:1px!important}.legal-dialog-v2 .legal-consents b{font-size:.72rem!important;line-height:1.25}.legal-dialog-v2 .legal-consents small{font-size:.61rem!important;line-height:1.3;color:#7a879a}.legal-dialog-v2 .legal-consents label:hover{background:#f4f8ff!important}@media(max-width:700px){.legal-signature-banner{top:8px;grid-template-columns:36px minmax(0,1fr);padding:10px}.legal-signature-banner>svg{width:34px;height:34px;padding:8px}.legal-signature-banner button{grid-column:1/-1;width:100%}.legal-sign-actions{width:100%;flex-direction:column-reverse}.legal-sign-actions>button,.legal-sign-actions>.legal-sign-later+button{width:100%;min-width:0!important}}
.legal-sign-footer .legal-sign-actions .legal-sign-later{display:inline-flex!important;flex:0 0 auto!important;width:auto!important;min-width:154px!important;max-width:none!important;min-height:48px!important;align-items:center!important;justify-content:center!important;padding:0 20px!important;border:1px solid #f2c66d!important;border-radius:12px!important;background:linear-gradient(135deg,#fff6d9,#ffe8a3)!important;color:#7a4d00!important;font-size:.82rem!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;box-shadow:0 8px 18px rgba(186,119,0,.13)!important}.legal-sign-footer .legal-sign-actions .legal-sign-later:hover{background:linear-gradient(135deg,#ffedb8,#ffd978)!important;color:#603c00!important;transform:translateY(-1px)}
