*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--navy:#1a3a6b;--navy-dark:#0e2245;--navy-mid:#15305a;--navy-light:#2a5298;--green:#2eb84b;--green-dark:#259a3e;--green-pale:#e6f9ea;--green-dim:#2eb84b1a;--white:#fff;--off-white:#f6f8fb;--gray-50:#f0f2f7;--gray-100:#e2e6ee;--gray-200:#cdd3df;--gray-300:#b0b8c9;--gray-400:#8e96a8;--gray-500:#6b7490;--gray-600:#505872;--gray-700:#363d52;--gray-800:#1f2537;--amber:#b7791f;--amber-pale:#fdf3e1;--red:#c53030;--red-pale:#fdecec;--blue-pale:#e8eef9;--font:"Inter", system-ui, -apple-system, sans-serif;--font-display:"Playfair Display", Georgia, serif;--shadow-xs:0 1px 2px #0e22450a;--shadow-sm:0 2px 8px #0e22450f;--shadow-md:0 8px 30px #0e224514;--shadow-green:0 8px 24px #2eb84b38;--radius:16px;--radius-md:12px;--radius-sm:10px;--radius-xs:8px;--ease:cubic-bezier(.22, 1, .36, 1);--transition:.25s var(--ease);--topbar-h:60px;--bottombar-h:64px;--sidebar-w:248px}html{-webkit-text-size-adjust:100%}body{font-family:var(--font);color:var(--gray-700);background:var(--off-white);-webkit-font-smoothing:antialiased;min-height:100dvh;font-size:15px;line-height:1.55}img{max-width:100%;display:block}a{color:var(--navy-light)}h1,h2,h3{color:var(--navy-dark);line-height:1.25}h1{letter-spacing:-.01em;font-size:24px;font-weight:700}h2{font-size:18px;font-weight:600}h3{font-size:15px;font-weight:600}.display{font-family:var(--font-display);font-weight:700}.muted{color:var(--gray-500)}.small{font-size:13px}.stack>*+*{margin-top:16px}.stack-sm>*+*{margin-top:8px}.row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.spacer{flex:1}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.btn{min-height:46px;font:600 15px/1 var(--font);cursor:pointer;transition:background var(--transition), box-shadow var(--transition), transform var(--transition);-webkit-tap-highlight-color:transparent;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:0 22px;text-decoration:none;display:inline-flex}.btn:active{transform:scale(.98)}.btn-primary{background:var(--green);color:var(--white);box-shadow:var(--shadow-green)}.btn-primary:hover{background:var(--green-dark)}.btn-navy{background:var(--navy);color:var(--white)}.btn-navy:hover{background:var(--navy-mid)}.btn-ghost{background:var(--white);color:var(--navy);border-color:var(--gray-200)}.btn-ghost:hover{background:var(--gray-50)}.btn-danger{background:var(--white);color:var(--red);border-color:#f0c4c4}.btn-block{width:100%}.btn-sm{min-height:36px;padding:0 14px;font-size:14px}.btn[disabled]{opacity:.55;cursor:not-allowed}.field{display:block}.field+.field{margin-top:16px}.label{color:var(--gray-700);margin-bottom:6px;font-size:13.5px;font-weight:600;display:block}.input,.select,.textarea{width:100%;min-height:48px;font:16px/1.3 var(--font);color:var(--gray-800);background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-sm);transition:border-color var(--transition), box-shadow var(--transition);padding:12px 14px}.input:focus,.select:focus,.textarea:focus{border-color:var(--navy-light);outline:none;box-shadow:0 0 0 3px #2a529826}.input-code{letter-spacing:.4em;text-align:center;font-variant-numeric:tabular-nums;font-size:24px}.hint{color:var(--gray-500);margin-top:6px;font-size:13px}.check{align-items:flex-start;gap:10px;font-size:14px;display:flex}.check input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0;margin-top:1px}.grid-2{gap:16px;display:grid}@media (width>=640px){.grid-2{grid-template-columns:1fr 1fr}.grid-2 .field+.field{margin-top:0}}.alert{border-radius:var(--radius-sm);border:1px solid;padding:12px 14px;font-size:14px}.alert-error{background:var(--red-pale);color:var(--red);border-color:#f5cccc}.alert-ok{background:var(--green-pale);color:var(--green-dark);border-color:#c4ecce}.alert-info{background:var(--blue-pale);color:var(--navy);border-color:#d2ddf2}.card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius);box-shadow:var(--shadow-xs);padding:20px}.card-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.cards{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}@media (width>=900px){.cards-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.badge{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:12.5px;font-weight:600;display:inline-flex}.badge:before{content:"";background:currentColor;border-radius:50%;width:7px;height:7px}.badge-pendiente{background:var(--amber-pale);color:var(--amber)}.badge-recibido{background:var(--blue-pale);color:var(--navy-light)}.badge-en_revision{color:#6b46c1;background:#efe9fb}.badge-presentado{background:var(--green-pale);color:var(--green-dark)}.badge-neutral{background:var(--gray-50);color:var(--gray-600)}.empty{text-align:center;color:var(--gray-500);padding:28px 12px;font-size:14px}.auth{background:radial-gradient(1200px 500px at 50% -10%, #2eb84b1a, transparent 60%), var(--off-white);flex-direction:column;justify-content:center;align-items:center;min-height:100dvh;padding:32px 16px;display:flex}.auth-card{width:100%;max-width:420px}.auth-logo{justify-content:center;margin-bottom:24px;display:flex}.auth-logo img{width:auto;height:40px}.auth h1{text-align:center;margin-bottom:6px}.auth .lead{text-align:center;color:var(--gray-500);margin-bottom:24px;font-size:14.5px}.auth-foot{color:var(--gray-400);text-align:center;margin-top:24px;font-size:13px}.auth-foot a{color:var(--gray-500)}.topbar{z-index:50;height:var(--topbar-h);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--gray-100);background:#fffffff5;align-items:center;gap:12px;padding:0 16px;display:flex;position:sticky;top:0}.topbar img{width:auto;height:30px}.topbar .who{color:var(--gray-500);text-overflow:ellipsis;white-space:nowrap;max-width:45vw;font-size:13px;overflow:hidden}.tag-admin{letter-spacing:.06em;text-transform:uppercase;color:var(--white);background:var(--navy);border-radius:6px;padding:3px 8px;font-size:11px;font-weight:700}.main{padding:20px 16px calc(var(--bottombar-h) + 28px + env(safe-area-inset-bottom));max-width:1100px;margin:0 auto}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:20px;display:flex}.page-head p{color:var(--gray-500);margin-top:4px}.bottombar{z-index:50;height:calc(var(--bottombar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--white);border-top:1px solid var(--gray-100);justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0}.bottombar a{color:var(--gray-400);-webkit-tap-highlight-color:transparent;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:11px;font-weight:500;text-decoration:none;display:flex}.bottombar a svg{width:22px;height:22px}.bottombar a[aria-current=page]{color:var(--navy)}.bottombar a[aria-current=page] svg{color:var(--green)}.sidebar{display:none}@media (width>=900px){.bottombar{display:none}.shell{grid-template-columns:var(--sidebar-w) minmax(0, 1fr);display:grid}.sidebar{top:var(--topbar-h);height:calc(100dvh - var(--topbar-h));background:var(--white);border-right:1px solid var(--gray-100);flex-direction:column;gap:2px;padding:20px 12px;display:flex;position:sticky}.sidebar a{border-radius:var(--radius-sm);color:var(--gray-600);align-items:center;gap:12px;padding:10px 12px;font-size:14.5px;font-weight:500;text-decoration:none;display:flex}.sidebar a svg{width:20px;height:20px;color:var(--gray-400)}.sidebar a:hover{background:var(--gray-50);color:var(--navy)}.sidebar a[aria-current=page]{background:var(--green-dim);color:var(--navy-dark);font-weight:600}.sidebar a[aria-current=page] svg{color:var(--green)}.main{padding:32px 32px 48px}}.table-wrap{-webkit-overflow-scrolling:touch;overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:14px}.table th{text-align:left;text-transform:uppercase;letter-spacing:.04em;color:var(--gray-500);border-bottom:1px solid var(--gray-100);padding:10px 12px;font-size:12px;font-weight:600}.table td{border-bottom:1px solid var(--gray-50);padding:12px}.list{list-style:none}.list li{border-bottom:1px solid var(--gray-50);align-items:center;gap:12px;padding:14px 0;display:flex}.list li:last-child{border-bottom:0}.qr{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-md);justify-content:center;padding:12px;display:flex}.qr img{width:200px;height:200px}.code{word-break:break-all;background:var(--gray-50);border-radius:var(--radius-xs);padding:8px 10px;font-family:ui-monospace,monospace;font-size:13px}.uploader-actions{gap:10px;display:grid}@media (width>=520px){.uploader-actions{grid-template-columns:repeat(auto-fit,minmax(180px,max-content))}}.upload-list{gap:8px;margin-top:14px;list-style:none;display:grid}.upload-item{border:1px solid var(--gray-100);border-radius:var(--radius-sm);background:var(--white);justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;font-size:13.5px;display:flex;position:relative;overflow:hidden}.upload-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.upload-state{color:var(--gray-500);text-align:right;flex-shrink:0;max-width:60%}.upload-item.is-ok .upload-state{color:var(--green-dark);font-weight:600}.upload-item.is-error{background:var(--red-pale);border-color:#f5cccc}.upload-item.is-error .upload-state{color:var(--red);white-space:normal}.upload-bar{background:var(--green);height:3px;transition:width .2s;position:absolute;bottom:0;left:0}.doclist{list-style:none}.doclist li{border-bottom:1px solid var(--gray-50);align-items:center;gap:12px;padding:12px 0;display:flex}.doclist li:last-child{border-bottom:0}.doc-icon{border-radius:10px;flex-shrink:0;place-items:center;width:40px;height:40px;font-size:11px;font-weight:700;display:grid}.doc-icon.is-pdf{background:var(--red-pale);color:var(--red)}.doc-icon.is-img{background:var(--blue-pale);color:var(--navy-light)}.doc-main{min-width:0;color:inherit;flex-direction:column;flex:1;text-decoration:none;display:flex}.doc-name{color:var(--navy-dark);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.tabs{scrollbar-width:none;gap:6px;margin-bottom:16px;padding-bottom:2px;display:flex;overflow-x:auto}.tabs a{color:var(--gray-600);background:var(--white);border:1px solid var(--gray-100);border-radius:999px;flex-shrink:0;padding:9px 16px;font-size:14px;font-weight:500;text-decoration:none}.tabs a[aria-current=page]{background:var(--navy);color:var(--white);border-color:var(--navy)}.tabs .count{opacity:.7;margin-left:4px}.quarters{grid-template-columns:1fr 1fr;gap:12px;display:grid}@media (width>=900px){.quarters{grid-template-columns:repeat(4,1fr)}}.quarter-tile{color:inherit;flex-direction:column;gap:10px;padding:16px;text-decoration:none;display:flex}.quarter-tile strong{color:var(--navy-dark);font-size:22px}.quarter-tile.is-active{border-color:var(--green);box-shadow:0 0 0 3px var(--green-dim)}.year-nav{align-items:center;gap:8px;display:flex}.back-link{color:var(--gray-500);align-items:center;gap:6px;margin-bottom:10px;font-size:14px;text-decoration:none;display:inline-flex}.lines{gap:14px;display:grid}.line{border:1px solid var(--gray-100);border-radius:var(--radius-md);background:var(--off-white);padding:14px}.line-nums{grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;display:grid}.line-nums .field+.field{margin-top:0}@media (width>=720px){.line-nums{grid-template-columns:.7fr 1fr .7fr .9fr}}.line-foot{justify-content:flex-end;align-items:center;gap:10px;margin-top:10px;display:flex}.line-foot strong{color:var(--navy-dark)}.totals{gap:6px;max-width:360px;margin-top:20px;margin-left:auto;display:grid}.totals div{justify-content:space-between;gap:16px;font-size:14.5px;display:flex}.totals dt{color:var(--gray-500)}.totals dd{font-variant-numeric:tabular-nums;color:var(--gray-800)}.totals .total{background:var(--navy);border-radius:var(--radius-sm);margin-top:6px;padding:12px 14px}.totals .total dt,.totals .total dd{color:var(--white);font-size:17px;font-weight:700}.editor-actions{bottom:calc(var(--bottombar-h) + env(safe-area-inset-bottom) + 8px);border:1px solid var(--gray-100);border-radius:var(--radius);box-shadow:var(--shadow-md);background:#fffffff2;grid-template-columns:1fr 1fr;gap:10px;padding:10px;display:grid;position:sticky}@media (width>=900px){.editor-actions{justify-content:flex-end;display:flex;bottom:16px}}.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.filters{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px;display:grid}.filters .input,.filters .select{min-height:42px}@media (width>=900px){.filters{grid-template-columns:110px 150px 200px 1fr auto}}.inv-row{border-bottom:1px solid var(--gray-50);color:inherit;align-items:center;gap:12px;padding:14px 0;text-decoration:none;display:flex}.inv-row:last-child{border-bottom:0}.inv-main{flex-direction:column;flex:1;min-width:0;display:flex}.inv-main strong{color:var(--navy-dark);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.badge-cobrada{background:var(--green-pale);color:var(--green-dark)}.badge-borrador{background:var(--gray-50);color:var(--gray-600)}.light{border-radius:50%;flex-shrink:0;width:12px;height:12px;display:inline-block}.light-verde{background:var(--green)}.light-amarillo{background:#e5a823}.light-rojo{background:var(--red)}.light-gris{background:var(--gray-200)}.matrix td,.matrix th{text-align:center}.matrix td:first-child,.matrix th:first-child{text-align:left}.matrix .cell{color:inherit;flex-direction:column;align-items:center;gap:4px;font-size:11.5px;text-decoration:none;display:inline-flex}.legend{color:var(--gray-500);flex-wrap:wrap;gap:14px;font-size:13px;display:flex}.legend span{align-items:center;gap:6px;display:inline-flex}.chip{color:var(--white);border-radius:999px;align-items:center;padding:2px 9px;font-size:12px;font-weight:600;display:inline-flex}.kv{grid-template-columns:max-content 1fr;gap:6px 16px;font-size:14px;display:grid}.kv dt{color:var(--gray-500)}.danger-zone{border-color:#f5cccc}.inline-form{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.inline-form .select,.inline-form .input{width:auto;min-height:38px;padding:6px 10px;font-size:14px}.btn-lg{min-height:54px;padding:0 26px;font-size:16px}.step+.step{margin-top:20px}.step-title{color:var(--navy-dark);align-items:center;gap:10px;margin-bottom:12px;font-size:15.5px;font-weight:600;display:flex}.step-num{background:var(--navy);width:26px;height:26px;color:var(--white);border-radius:50%;flex-shrink:0;place-items:center;font-size:13px;font-weight:700;display:grid}.tiles{gap:10px;display:grid}@media (width>=720px){.tiles{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}}.tile{text-align:left;background:var(--white);border:1.5px solid var(--gray-100);border-radius:var(--radius-md);cursor:pointer;width:100%;font:inherit;color:inherit;transition:border-color var(--transition), box-shadow var(--transition), background var(--transition);-webkit-tap-highlight-color:transparent;align-items:center;gap:12px;padding:14px;display:flex}.tile:hover{border-color:var(--gray-200)}.tile.is-selected{border-color:var(--green);background:var(--green-pale);box-shadow:0 0 0 3px var(--green-dim)}.tile-icon{background:var(--blue-pale);width:42px;height:42px;color:var(--navy);border-radius:12px;flex-shrink:0;place-items:center;display:grid}.tile.is-selected .tile-icon{background:var(--green);color:var(--white)}.tile-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.tile-text strong{color:var(--navy-dark);font-size:15px}.tile-text span{color:var(--gray-500);font-size:13px;line-height:1.35}.tile-count{background:var(--amber-pale);color:var(--amber);white-space:nowrap;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:600}.tile-count.has{background:var(--green-pale);color:var(--green-dark)}.dropzone{border:2px dashed var(--gray-200);border-radius:var(--radius);text-align:center;background:var(--off-white);transition:border-color var(--transition), background var(--transition);padding:22px 16px}.dropzone.is-drag{border-color:var(--green);background:var(--green-pale)}.dropzone .uploader-actions{grid-template-columns:1fr;justify-content:center}@media (width>=520px){.dropzone .uploader-actions{flex-wrap:wrap;display:flex}}.dropzone-hint{color:var(--gray-500);margin-top:12px;font-size:13px}.dropzone-target{color:var(--gray-600);margin-top:6px;font-size:13.5px}.dropzone-target strong{color:var(--navy-dark)}.only-desktop{display:none}@media (hover:hover) and (pointer:fine){.only-desktop{display:inline}}.upload-done{border-radius:var(--radius-md);background:var(--green-pale);color:var(--green-dark);border:1px solid #c4ecce;align-items:center;gap:10px;margin-top:14px;padding:14px 16px;font-weight:600;display:flex}.checklist{gap:8px;list-style:none;display:grid}.checklist li{align-items:center;gap:10px;font-size:14.5px;display:flex}.check-dot{border-radius:50%;flex-shrink:0;place-items:center;width:22px;height:22px;font-size:12px;font-weight:700;display:grid}.check-dot.ok{background:var(--green);color:var(--white)}.check-dot.no{background:var(--gray-50);border:1.5px dashed var(--gray-300)}.editor-layout{gap:20px;display:grid}@media (width>=1200px){.editor-layout{grid-template-columns:minmax(0,1fr) 420px;align-items:start}}.editor-preview{top:calc(var(--topbar-h) + 20px);position:sticky}.only-desktop-block{display:none}@media (width>=1200px){.only-desktop-block{display:block}.only-mobile{display:none!important}}.number-card{background:linear-gradient(135deg, var(--navy-dark), var(--navy));color:var(--white);border:0;justify-content:space-between;align-items:center;gap:12px;display:flex}.number-card .muted{color:#ffffffb3}.number-big{letter-spacing:.01em;font-variant-numeric:tabular-nums;margin:2px 0;font-size:28px;font-weight:700}.number-card .btn-ghost{color:var(--white);background:#ffffff1f;border-color:#ffffff40}.editor-actions{align-items:center}.editor-total{display:none}@media (width>=900px){.editor-total{flex-direction:column;margin-right:auto;line-height:1.2;display:flex}.editor-total strong{color:var(--navy-dark);font-size:20px}}.inv-preview{background:var(--white);border:1px solid var(--gray-100);box-shadow:var(--shadow-md);color:var(--gray-700);border-top:5px solid var(--green);border-radius:6px;padding:22px;font-size:11.5px}.inv-preview-head{justify-content:space-between;gap:12px;margin-bottom:16px;display:flex}.inv-preview-logo{object-fit:contain;max-width:120px;max-height:48px}.inv-preview-issuer{color:var(--navy);font-size:15px}.inv-preview-title{color:var(--navy);font-size:16px;font-weight:700}.inv-preview-parties{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px;display:grid}.inv-preview-parties>div{background:var(--off-white);border-radius:4px;padding:10px}.inv-preview-parties span{color:var(--gray-500);letter-spacing:.05em;font-size:9px;font-weight:700;display:block}.inv-preview-parties strong{color:var(--navy);margin:2px 0;font-size:12px;display:block}.inv-preview-lines{border-collapse:collapse;width:100%;margin-bottom:12px}.inv-preview-lines th{background:var(--navy);color:var(--white);text-align:left;padding:5px 6px;font-size:10px;font-weight:600}.inv-preview-lines td{border-bottom:1px solid var(--gray-100);vertical-align:top;padding:6px}.inv-preview-lines td:not(:first-child),.inv-preview-lines th:not(:first-child){text-align:right;white-space:nowrap}.inv-preview-totals{gap:3px;max-width:230px;margin-left:auto;display:grid}.inv-preview-totals div{justify-content:space-between;gap:10px;display:flex}.inv-preview-totals dt{color:var(--gray-500)}.inv-preview-totals .total{background:var(--navy);color:var(--white);margin-top:4px;padding:6px 8px;font-size:13px;font-weight:700}.inv-preview-totals .total dt{color:var(--white)}.inv-preview-note{margin-top:10px;font-size:10.5px}.success-card{text-align:center;background:linear-gradient(180deg, var(--green-pale), var(--white));border-color:#c4ecce;padding:28px 20px}.success-icon{background:var(--green);width:56px;height:56px;color:var(--white);border-radius:50%;place-items:center;margin:0 auto 12px;display:grid}.success-card .row{justify-content:center;margin-top:16px}.ai-card{background:linear-gradient(180deg, #f3f7fe, var(--white) 70%);border:1.5px solid #c9d8f2}.ai-spark{color:var(--green);font-size:20px}.ai-actions{gap:10px;margin-top:12px;display:grid}@media (width>=640px){.ai-actions{flex-wrap:wrap;display:flex}.ai-actions .btn-primary{margin-left:auto}}.is-recording{animation:1.2s infinite pulse;border-color:var(--red)!important;color:var(--red)!important}@keyframes pulse{50%{box-shadow:0 0 0 6px #c530301f}}.link-btn{color:var(--navy-light);cursor:pointer;font:inherit;background:0 0;border:0;padding:0;text-decoration:underline}.more{margin-top:16px}.more summary{cursor:pointer;color:var(--gray-600);font-size:14px;font-weight:500}.field .hint{display:block}.fees-table td,.fees-table th{text-align:center;white-space:nowrap}.fees-table td:first-child,.fees-table th:first-child{text-align:left;white-space:normal;min-width:220px}.fees-table .is-current{background:#2eb84b0d}.fees-table tfoot td{border-top:2px solid var(--gray-100);font-size:13px}.fee-client{color:var(--navy-dark);text-align:left;font-weight:600;text-decoration:none}.fee-note{color:var(--amber)}.fee-select{font:600 12.5px var(--font);cursor:pointer;border:1px solid #0000;border-radius:999px;min-width:104px;padding:6px 8px}.fee-select:focus{outline:2px solid var(--navy-light)}.fee-none{background:var(--white);border-color:var(--gray-200);color:var(--gray-400)}.fee-pendiente{background:var(--amber-pale);color:var(--amber)}.fee-pagado{background:var(--green-pale);color:var(--green-dark)}.fee-devuelto,.fee-impagado{background:var(--red-pale);color:var(--red)}.fee-gratis{background:var(--blue-pale);color:var(--navy-light)}.fee-invitado{color:#6b46c1;background:#efe9fb}.fee-dot{border-radius:50%;width:10px;height:10px;display:inline-block}.fee-dot.fee-pendiente{background:var(--amber)}.fee-dot.fee-pagado{background:var(--green)}.fee-dot.fee-devuelto{background:var(--red)}.fee-dot.fee-impagado{background:#8b1d1d}.fee-dot.fee-gratis{background:var(--navy-light)}.fee-dot.fee-invitado{background:#6b46c1}.fee-edit td{background:var(--off-white)}.kpi{color:var(--navy-dark);font-variant-numeric:tabular-nums;margin-top:4px;font-size:22px;font-weight:700}.matrix th:first-child,.matrix td:first-child,.fees-table th:first-child,.fees-table td:first-child{z-index:1;background:var(--white);box-shadow:1px 0 0 var(--gray-100);position:sticky;left:0}.fees-table tbody tr.fee-edit td:first-child{box-shadow:none;position:static}.fees-table .is-current:first-child{background:var(--white)}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}@media (width>=900px){.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}@media (width<=899px){.matrix td:first-child,.matrix th:first-child,.fees-table td:first-child,.fees-table th:first-child{min-width:150px;max-width:170px}.fees-table td,.fees-table th,.matrix td,.matrix th{padding:10px 8px}.fee-select,.inline-form .select,.inline-form .input,.filters .input,.filters .select{font-size:16px}.fee-select{min-width:112px;padding:7px 8px}.stat strong{font-size:24px}.page-head{margin-bottom:14px}.page-head h1{font-size:21px}.card{padding:16px}.row>.btn{flex:auto}.tabs{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.topbar .tag-admin{display:none}}.main,.editor-layout>*{min-width:0}.mobile-only{display:none}.month-chips{scrollbar-width:none;gap:6px;padding:0 16px 12px;overflow-x:auto}.month-chips button{border:1px solid var(--gray-200);background:var(--white);min-height:38px;font:600 14px var(--font);color:var(--gray-600);cursor:pointer;border-radius:999px;flex-shrink:0;padding:0 16px}.month-chips button.is-active{background:var(--navy);border-color:var(--navy);color:var(--white)}@media (width<=899px){.mobile-only{display:flex}.hide-mobile{display:none}.fees-table td:first-child,.fees-table th:first-child{box-shadow:none;max-width:none;position:static}}.chat{flex-direction:column;display:flex}.chat-list{overscroll-behavior:contain;flex-direction:column;gap:8px;min-height:280px;max-height:calc(100dvh - 330px);padding:4px 2px 8px;display:flex;overflow-y:auto}@media (width>=900px){.chat-list{max-height:calc(100dvh - 300px)}}.chat-day{text-align:center;margin:10px 0 4px}.chat-day span{color:var(--gray-500);background:var(--gray-50);text-transform:capitalize;border-radius:999px;padding:3px 10px;font-size:12px}.chat .bubble{background:var(--gray-50);border-radius:16px 16px 16px 4px;width:fit-content;max-width:82%;padding:8px 12px}.chat .bubble.is-mine{background:var(--navy);color:var(--white);border-radius:16px 16px 4px;margin-left:auto}.chat .bubble.is-failed{background:var(--red-pale);color:var(--red)}.chat .bubble p{white-space:pre-line;word-break:break-word}.chat .bubble a{color:inherit;text-decoration:underline}.bubble-author{color:var(--green-dark);margin-bottom:2px;font-size:11.5px;font-weight:700;display:block}.bubble-meta{opacity:.7;text-align:right;margin-top:3px;font-size:11px;display:block}.bubble-file{word-break:break-all;background:#ffffffb3;border-radius:10px;align-items:center;gap:8px;margin:2px 0 4px;padding:8px 10px;font-size:13.5px;font-weight:600;display:flex;color:var(--navy-dark)!important;text-decoration:none!important}.bubble.is-mine .bubble-file{background:#ffffff26;color:var(--white)!important}.bubble-file-icon{font-size:18px}.chat-composer{border-top:1px solid var(--gray-100);align-items:flex-end;gap:8px;padding-top:10px;display:flex}.chat-input{resize:none;border-radius:22px;min-height:44px;max-height:140px;padding:11px 16px}.chat-attach,.chat-send{border:1px solid var(--gray-200);background:var(--white);width:44px;height:44px;color:var(--gray-600);cursor:pointer;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.chat-send{background:var(--green);border-color:var(--green);color:var(--white)}.chat-send:disabled{opacity:.45;cursor:default}.nav-badge{background:var(--red);min-width:18px;height:18px;color:var(--white);border-radius:999px;place-items:center;margin-left:auto;padding:0 5px;font-size:11px;font-weight:700;display:inline-grid}.bottombar a{position:relative}.bottombar .nav-badge{margin:0;position:absolute;top:6px;left:calc(50% + 6px)}.ref{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}.ref-hero{color:#fff;text-align:center;background:radial-gradient(120% 90% at 50% 0,#2b1b6b 0%,#120c3a 55%,#07051d 100%);border-radius:20px;padding:26px 20px 22px;position:relative;overflow:hidden;box-shadow:0 18px 40px #120c3a59}.ref-glow{pointer-events:none;background:conic-gradient(#0000,#ffd7002e,#0000 30%,#2eb84b33,#0000 60%);animation:9s linear infinite ref-spin;position:absolute;inset:-40%}@keyframes ref-spin{to{transform:rotate(360deg)}}.ref-hero>:not(.ref-glow){position:relative}.ref-kicker{letter-spacing:.12em;text-transform:uppercase;color:#ffd75e;font-size:12px;font-weight:700}.ref-title{color:#fff;margin:6px 0 8px;font-size:28px;font-weight:800;line-height:1.15}.ref-title span{color:#ffd75e;text-shadow:0 0 18px #ffd75ea6}.ref-sub{color:#fffc;max-width:420px;margin:0 auto;font-size:14px}.ref-counter{background:#00000059;border:1px solid #ffd75e73;border-radius:16px;flex-direction:column;margin:18px auto 16px;padding:12px 26px;display:inline-flex;box-shadow:inset 0 0 22px #ffd75e26}.ref-counter-label{letter-spacing:.14em;text-transform:uppercase;color:#ffffffb3;font-size:11px}.ref-counter-value{color:#ffd75e;font-variant-numeric:tabular-nums;text-shadow:0 0 22px #ffd75e99;font-size:40px;font-weight:800;line-height:1.1}.ref-counter-note{color:#7cf29a;font-size:12px}.ref-link{text-align:left;background:#ffffff1a;border:1px solid #fff3;border-radius:12px;align-items:center;gap:8px;padding:6px 6px 6px 12px;display:flex}.ref-link code{text-overflow:ellipsis;white-space:nowrap;color:#fff;flex:1;min-width:0;font-size:13px;overflow:hidden}.ref-link button{color:#120c3a;cursor:pointer;background:#fff;border:0;border-radius:9px;flex-shrink:0;min-height:36px;padding:0 14px;font-weight:700}.ref-share{cursor:pointer;width:100%;min-height:52px;font:800 16px var(--font);color:#1b1300;background:linear-gradient(#ffe58a,#ffc21a);border:0;border-radius:999px;margin-top:12px;animation:2.2s ease-in-out infinite ref-pulse;box-shadow:0 8px 24px #ffc21a73}@keyframes ref-pulse{50%{transform:scale(1.025);box-shadow:0 10px 30px #ffc21a99}}.ref-code{color:#ffffffb3;margin-top:10px;font-size:12.5px}.ref-code strong{color:#fff;letter-spacing:.12em}.ref-level-icon{font-size:34px}.ref-bar{background:var(--gray-50);border-radius:999px;height:10px;margin:12px 0 6px;overflow:hidden}.ref-bar span{background:linear-gradient(90deg, var(--green), #ffc21a);border-radius:999px;height:100%;display:block}.ref-list{gap:10px;list-style:none;display:grid}.ref-item{border:1px solid var(--gray-100);border-radius:14px;align-items:center;gap:12px;padding:12px;display:flex}.ref-item.is-cualifica{background:linear-gradient(#fff9e3,#fff);border-color:#ffc21a;box-shadow:0 0 0 3px #ffc21a2e}.ref-item.is-pagado{background:var(--green-pale);border-color:#c4ecce}.ref-avatar{color:#fff;background:linear-gradient(135deg,#5b3bd6,#2b1b6b);border-radius:50%;flex-shrink:0;place-items:center;width:40px;height:40px;font-weight:800;display:grid}.ref-reels{flex-shrink:0;gap:4px;display:flex}.ref-reels span{background:#120c3a;border-radius:8px;place-items:center;width:30px;height:36px;font-size:17px;display:grid;box-shadow:inset 0 0 8px #0009}.ref-reels span.on{background:linear-gradient(#2b1b6b,#120c3a);animation:.5s ease-out both ref-pop;box-shadow:inset 0 0 8px #ffd75e80}@keyframes ref-pop{0%{opacity:0;transform:translateY(-8px)scale(.6)}}.confetti{pointer-events:none;z-index:200;position:fixed;inset:0;overflow:hidden}.confetti span{font-size:22px;animation:linear forwards ref-fall;position:absolute;top:-40px}@keyframes ref-fall{to{transform:translateY(110vh)rotate(540deg)}}.promo-ref{color:#fff;background:radial-gradient(120% 120% at 0 0,#2b1b6b,#120c3a);border-radius:16px;align-items:center;gap:14px;margin-bottom:16px;padding:14px 16px;text-decoration:none;display:flex;box-shadow:0 10px 24px #120c3a40}.promo-ref strong{color:#ffd75e}.promo-ref .promo-emoji{font-size:30px}@media (prefers-reduced-motion:reduce){.ref-glow,.ref-share,.confetti span,.ref-reels span.on{animation:none}}.contract-cta{border-radius:var(--radius);background:var(--navy);color:#fff;align-items:center;gap:12px;margin-bottom:14px;padding:16px;text-decoration:none;display:flex;box-shadow:0 6px 18px #1a3a6b40}.contract-cta:hover{color:#fff;filter:brightness(1.08)}.stat-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}@media (width<=640px){.stat-strip{gap:8px}.stat-strip .card{padding:12px 10px}.stat-strip .kpi{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:15px!important}}.quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px;display:grid}.quick-actions a{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius);min-height:88px;box-shadow:var(--shadow-xs);text-align:center;color:var(--navy-dark);flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:14px 8px;font-size:13px;font-weight:600;line-height:1.25;text-decoration:none;transition:transform .12s,box-shadow .12s,border-color .12s;display:flex;position:relative}.quick-actions a:hover{border-color:var(--green);box-shadow:var(--shadow-sm);transform:translateY(-1px)}.quick-actions a:active{transform:scale(.97)}.quick-actions .qa-icon{font-size:24px;line-height:1}.quick-actions .nav-badge{position:absolute;top:8px;right:8px}@media (width<=640px){.matrix td:not(:first-child),.matrix th:not(:first-child){width:13%;padding-left:2px;padding-right:2px}.matrix .light{width:14px;height:14px}.matrix td:first-child{min-width:0;max-width:46vw}}.client-actions{scrollbar-width:none;gap:8px;margin:0 0 14px;padding-bottom:2px;display:flex;overflow-x:auto}.client-actions::-webkit-scrollbar{display:none}.client-actions a{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-sm);min-width:74px;color:var(--navy-dark);flex-direction:column;flex:none;align-items:center;gap:4px;padding:10px 8px;font-size:12px;font-weight:600;text-decoration:none;display:flex;position:relative}.client-actions a span:first-child{font-size:20px;line-height:1}.client-actions a:hover{border-color:var(--green)}.client-actions .nav-badge{position:absolute;top:4px;right:4px}@media (width<=640px){.client-form{order:2}}
