/* Glow Up Intelligence · estilos de factura */
#facturaHost{--rosa-glow:#F8DCE5; --rosa-claro:#FBEAF0; --rosa-acento:#E8638F; --dorado:#C9A14A; --dorado-soft:#E3C988; --blanco:#FFFFFF; --gris-perla:#F5F5F5; --tinta:#2E2A2B; --tinta-soft:#6b6469; --linea:#ecdfe4;}
#facturaHost{display:none;width:680px;background:#fff;font-family:'Poppins',sans-serif;color:#2E2A2B;transform-origin:top left}
#facturaHost *{box-sizing:border-box;margin:0;padding:0}
#facturaHost .invoice{padding:8px}
#facturaHost .preview-wrap{position:sticky;top:90px;}
#facturaHost .invoice{padding:8px;}
#facturaHost .inv-outer{border:1px solid var(--dorado);border-radius:24px;padding:6px;background:transparent;
    box-shadow:0 14px 40px rgba(46,42,43,.10);}
#facturaHost .inv-frame{position:relative;border:1px solid var(--dorado);border-radius:18px;overflow:hidden;background:#fff;}
#facturaHost .corner{position:absolute;width:58px;height:58px;z-index:5;pointer-events:none;}
#facturaHost .corner svg{width:100%;height:100%;display:block;}
#facturaHost .corner.tl{top:5px;left:5px;}
#facturaHost .corner.tr{top:5px;right:5px;transform:scaleX(-1);}
#facturaHost .corner.bl{bottom:5px;left:5px;transform:scaleY(-1);}
#facturaHost .corner.br{bottom:5px;right:5px;transform:scale(-1,-1);}
#facturaHost .inv-header{position:relative;padding:30px 20px 22px;background:repeating-linear-gradient(to bottom,rgba(248,210,222,.55) 0 26px,#fff 26px 31px);overflow:hidden;}
#facturaHost .hdr-wordmark{position:relative;z-index:2;text-align:center;}
#facturaHost .hdr-logo{font-family:'Poppins',sans-serif;font-weight:800;letter-spacing:.12em;line-height:1;display:flex;align-items:baseline;justify-content:center;}
#facturaHost .hdr-glow{font-size:42px;color:#fff;text-shadow:0 0 12px rgba(255,255,255,.75),0 2px 4px rgba(46,42,43,.15);}
#facturaHost .hdr-up{font-size:46px;margin-left:.12em;background:linear-gradient(180deg,#F6DD96 0%,#C9A14A 55%,#97712C 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 2px 3px rgba(151,113,44,.35);}
#facturaHost .hdr-sub{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:6px;}
#facturaHost .hdr-sub-text{font-family:'Poppins',sans-serif;font-size:11.5px;font-weight:500;letter-spacing:.34em;color:#fff;text-shadow:0 1px 2px rgba(46,42,43,.18);}
#facturaHost .hdr-line{width:34px;height:1px;background:rgba(255,255,255,.9);}
#facturaHost .hdr-script{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:11px;}
#facturaHost .hdr-script-text{font-family:'Yellowtail',cursive;font-size:23px;color:var(--rosa-acento);line-height:1;}
#facturaHost .hdr-dash{width:22px;height:1px;background:var(--dorado);opacity:.75;}
#facturaHost .hdr-mini-spark{width:10px;height:10px;color:var(--dorado);opacity:.9;flex:0 0 auto;}
#facturaHost .inv-header .sparkle{position:absolute;color:var(--dorado);width:16px;height:16px;opacity:.85;}
#facturaHost .inv-header .s1{left:26px;top:40px;}
#facturaHost .inv-header .s2{right:26px;top:40px;}
#facturaHost .inv-header .s-corner{position:absolute;left:14px;top:10px;width:24px;height:24px;color:var(--dorado);opacity:.9;}
#facturaHost .inv-header .s3{position:absolute;right:14px;top:10px;width:24px;height:24px;color:var(--dorado);opacity:.9;}
#facturaHost .inv-body{padding:6px 26px 26px;}
#facturaHost .inv-cardinfo{display:flex;gap:18px;background:#FFFCFD;border:1px solid var(--rosa-glow);border-radius:22px;padding:20px 22px;margin-top:22px;box-shadow:0 4px 16px rgba(235,149,173,.12);}
#facturaHost .info-col{flex:1;}
#facturaHost .info-col.narrow{flex:0 0 168px;}
#facturaHost .info-divider{width:1px;background:var(--linea);align-self:stretch;}
#facturaHost .info-line{display:flex;gap:9px;align-items:flex-start;margin-bottom:15px;}
#facturaHost .info-line:last-child{margin-bottom:0;}
#facturaHost .info-line svg{width:18px;height:18px;flex:0 0 auto;margin-top:2px;color:var(--rosa-acento);}
#facturaHost .info-line .txt{flex:1;min-width:0;}
#facturaHost .lab{color:var(--rosa-acento);font-weight:600;font-size:12.5px;margin-right:5px;}
#facturaHost .val{color:var(--tinta);font-size:14px;}
#facturaHost .val.line{border-bottom:1px solid var(--linea);padding-bottom:3px;display:block;}
#facturaHost .val.multiline{white-space:pre-line;display:block;line-height:1.5;}
#facturaHost .inv-tablewrap{position:relative;margin-top:22px;border-radius:10px;overflow:hidden;}
#facturaHost .watermark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    font-family:'Playfair Display',serif;font-weight:700;font-size:120px;letter-spacing:-6px;
    color:var(--rosa-glow);opacity:.55;z-index:0;pointer-events:none;}
#facturaHost table.items{width:100%;border-collapse:collapse;font-size:13px;position:relative;z-index:1;}
#facturaHost table.items thead th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:#fff;
    background:var(--rosa-acento);padding:11px 12px;}
#facturaHost table.items thead th.num, #facturaHost table.items tbody td.num{text-align:right;}
#facturaHost table.items thead th:first-child{border-radius:8px 0 0 0;}
#facturaHost table.items thead th:last-child{border-radius:0 8px 0 0;}
#facturaHost table.items tbody td{padding:13px 12px;border-bottom:1px dashed #e7d2da;border-right:1px dashed #f0dde3;vertical-align:top;background:transparent;}
#facturaHost table.items tbody td:last-child{border-right:none;}
#facturaHost table.items tbody td.desc{font-weight:500;}
#facturaHost table.items tbody tr:last-child td{border-bottom:none;}
#facturaHost .inv-bottom{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px;align-items:stretch;}
#facturaHost .msgbox{border:1px solid var(--dorado-soft);border-radius:14px;padding:18px 18px 16px;position:relative;display:flex;flex-direction:column;justify-content:center;}
#facturaHost .msgbox .heart-top{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:#fff;padding:0 8px;display:flex;align-items:center;}
#facturaHost .msgbox .heart-top svg{width:15px;height:15px;}
#facturaHost .msg-line{font-family:'Yellowtail',cursive;font-weight:400;font-size:24px;color:var(--rosa-acento);line-height:1.6;display:flex;align-items:center;gap:6px;}
#facturaHost .msg-line .spark{width:14px;height:14px;flex:0 0 auto;}
#facturaHost .msg-line .heart-o{width:14px;height:14px;flex:0 0 auto;}
#facturaHost .msg-extra{font-family:'Poppins';font-size:11.5px;color:var(--tinta-soft);font-style:italic;margin-top:6px;}
#facturaHost .totalsbox{display:flex;flex-direction:column;justify-content:flex-end;gap:2px;}
#facturaHost .t-line{display:flex;justify-content:space-between;padding:7px 4px;font-size:13px;color:var(--tinta-soft);}
#facturaHost .t-bar{margin-top:8px;background:var(--rosa-acento);color:#fff;display:flex;justify-content:space-between;align-items:center;
    padding:14px 16px;border-radius:10px;font-weight:700;font-size:14.5px;letter-spacing:.02em;text-transform:uppercase;}
#facturaHost .t-bar span:last-child{font-family:'Playfair Display',serif;font-size:18px;text-transform:none;letter-spacing:0;}
#facturaHost .inv-footer{margin-top:26px;border-top:1px solid var(--gris-perla);padding-top:16px;text-align:center;}
#facturaHost .social-row{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;font-size:12px;color:var(--tinta-soft);margin-bottom:14px;}
#facturaHost .soc{display:flex;align-items:center;gap:6px;}
#facturaHost .soc svg{width:16px;height:16px;color:var(--rosa-acento);}
#facturaHost .footer-rule{display:flex;align-items:center;gap:12px;color:var(--dorado);font-size:10px;letter-spacing:.32em;font-weight:600;}
#facturaHost .footer-rule::before, #facturaHost .footer-rule::after{content:"";flex:1;height:1px;background:var(--dorado-soft);}
#facturaHost .footer-heart{margin-top:12px;display:flex;justify-content:center;}
#facturaHost .footer-heart svg{width:14px;height:14px;color:var(--rosa-acento);}
