*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f4f6f9;color:#111827;display:flex;min-height:100vh}aside{width:245px;background:#ffd100;color:#111827;padding:22px 18px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;box-shadow:4px 0 20px #1111}.brandbox{height:215px;display:flex;align-items:flex-start;justify-content:center;padding-top:2px}.brandbox img{width:178px;height:178px;object-fit:contain;filter:drop-shadow(0 5px 8px #0002)}nav{display:grid;gap:8px}nav button{border:0;background:transparent;color:#111827;text-align:left;padding:13px;border-radius:11px;font-weight:800;cursor:pointer;font-size:14px}.active,nav button:hover{background:#fff!important;color:#111827!important;box-shadow:0 3px 12px #1111}aside small{margin-top:auto;text-align:center;color:#463c00;font-weight:700}main{margin-left:245px;width:calc(100% - 245px)}header{height:82px;background:white;border-bottom:1px solid #e5e7eb;padding:18px 32px;display:flex;justify-content:space-between;align-items:center}header b{display:block;font-size:22px}header span{font-size:13px;color:#6b7280}button{background:#e6007e;color:white;border:0;border-radius:9px;padding:11px 16px;font-weight:800;cursor:pointer}section{padding:28px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:20px}.stats article,.panel{background:white;border:1px solid #e6e9ee;border-radius:14px;padding:22px;box-shadow:0 4px 18px #1322380b}.stats strong{font-size:30px;display:block}.stats span{color:#6b7280}.panel h3{margin-top:0}#cards{display:grid;gap:10px}.cardrow{border:1px solid #e5e7eb;border-radius:11px;padding:14px;display:flex;align-items:center;gap:12px}.badge,.thumb{width:52px;height:52px;border-radius:12px;flex:0 0 52px}.badge{background:linear-gradient(135deg,#00aeef,#e6007e);display:grid;place-items:center;color:white;font-weight:900}.thumb{object-fit:cover;border:1px solid #e5e7eb}.cardrow .info{flex:1}.cardrow small{display:block;color:#6b7280;margin-top:3px}.cardrow .mini{padding:8px 10px;background:#f2f4f7;color:#172033}.cardrow .danger{color:#d60035}.empty{text-align:center;color:#84909f;padding:40px}.editgrid{display:grid;grid-template-columns:minmax(480px,1fr) 390px;gap:24px}.panel label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#475569;margin-bottom:14px}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}input,textarea{width:100%;border:1px solid #d8dee8;border-radius:8px;padding:11px;font:inherit;outline:none}input:focus,textarea:focus{border-color:#00aeef;box-shadow:0 0 0 3px #00aeef16}textarea{min-height:80px;resize:vertical}.slug{display:flex;align-items:center;border:1px solid #d8dee8;border-radius:8px;overflow:hidden}.slug span{padding:0 10px}.slug input{border:0}.actions{display:flex;justify-content:flex-end;gap:10px}.secondary{background:#edf0f4;color:#334155}.uploadbox{position:relative}.uploadbox input{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:2}.uploadpreview{min-height:112px;border:2px dashed #d7dde6;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#fafbfd;color:#64748b}.uploadpreview>span{width:38px;height:38px;border-radius:50%;background:#fff1f8;color:#e6007e;display:grid;place-items:center;font-size:24px}.uploadpreview b{color:#172033}.uploadpreview small{font-weight:500}.uploadpreview.hasimage{min-height:92px;flex-direction:row;justify-content:flex-start;padding:10px 14px;text-align:left}.uploadpreview.hasimage img{width:70px;height:70px;border-radius:12px;object-fit:cover;border:1px solid #e5e7eb}.uploadpreview.hasimage div{display:grid;gap:4px}.previewwrap{text-align:center}.phone{width:320px;height:650px;background:#111;border-radius:42px;padding:10px;margin:auto;box-shadow:0 18px 50px #1113}.screen{height:100%;background:white;border-radius:33px;overflow:auto;position:relative;padding-bottom:22px}.cover{height:145px;background:linear-gradient(125deg,#00aeef 0 35%,#e6007e 35% 70%,#ffd100 70%)}.avatar{width:90px;height:90px;border-radius:50%;background:#fff;border:5px solid white;box-shadow:0 3px 15px #0002;margin:-45px auto 8px;display:grid;place-items:center;color:#e6007e;font-size:42px;font-weight:1000;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.screen h2{margin:4px 12px}.screen p{margin:6px 20px;color:#64748b;font-size:13px}.contactBtns{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:18px}.contactBtns a{background:#f2f6fa;border-radius:12px;padding:12px 4px;text-decoration:none;font-size:18px}.save{width:85%;margin:5px auto;background:#e6007e}.qr{margin:20px auto 8px;width:90px;height:90px;border:6px solid #111;display:grid;place-items:center;font-size:52px;line-height:.6}.qr small{font-size:9px}.brand{font-size:9px;letter-spacing:2px;color:#64748b}@media(max-width:900px){aside{width:76px;padding:12px 8px}.brandbox{height:90px}.brandbox img{width:68px;height:68px}nav button span,aside small{display:none}nav button{text-align:center;font-size:20px}main{margin-left:76px;width:calc(100% - 76px)}.editgrid{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.row{grid-template-columns:1fr}}
.uploadbox.dragover .uploadpreview{border-color:#e6007e;background:#fff1f8;transform:scale(1.005)}
.modal{position:fixed;inset:0;background:#111827aa;z-index:50;display:grid;place-items:center;padding:20px}.modal[hidden]{display:none}.modalcard{width:min(560px,96vw);background:#fff;border-radius:18px;padding:20px;box-shadow:0 24px 80px #0005}.modalhead{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.modalhead h3{margin:0 0 5px}.modalhead p{margin:0 0 15px;color:#64748b;font-size:13px}.iconbtn{background:#eef1f5;color:#334155;border-radius:50%;width:38px;height:38px;padding:0;font-size:24px}.cropstage{width:min(420px,100%);aspect-ratio:1;margin:auto;border-radius:14px;overflow:hidden;background:#1f2937;touch-action:none}.cropstage canvas{display:block;width:100%;height:100%;cursor:grab}.cropstage canvas:active{cursor:grabbing}.zoomrow{display:flex;align-items:center;gap:12px;margin:18px auto 8px;max-width:420px}.zoomrow input{padding:0}.modalactions{display:flex;gap:10px;margin-top:16px}.spacer{flex:1}.toast{position:fixed;right:24px;bottom:24px;z-index:80;min-width:280px;max-width:420px;background:#10261b;color:#fff;border-radius:12px;padding:14px 18px;font-weight:800;box-shadow:0 12px 40px #0003;opacity:0;transform:translateY(16px);pointer-events:none;transition:.22s}.toast.show{opacity:1;transform:none}.toast.error{background:#8b1538}.actions button:disabled{opacity:.7;cursor:wait}
.cardrow .actions-inline{display:flex;gap:8px;flex-wrap:wrap}.qrpreview{border:1px solid #e5e7eb;border-radius:16px;padding:10px;background:#fff}.qrpreview img{width:100px;height:100px;display:block}.previewurl{display:block;font-size:10px;letter-spacing:.3px;color:#0f172a;padding:0 16px;word-break:break-all}.public-view{display:block;min-height:100vh;padding:30px;background:radial-gradient(circle at top,#fff7bf 0,#f6f8fb 42%)}.public-shell{max-width:480px;margin:0 auto}.public-back{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#111827;font-weight:800;margin-bottom:14px}.public-card{background:#fff;border:1px solid #e5e7eb;border-radius:24px;box-shadow:0 12px 42px #13223812;padding:0 26px 28px;text-align:center;overflow:hidden}.public-cover{height:160px;margin:0 -26px;background:linear-gradient(125deg,#00aeef 0 35%,#e6007e 35% 70%,#ffd100 70%)}.public-avatar{width:108px;height:108px;border-radius:50%;margin:-54px auto 12px;border:6px solid #fff;background:#fff;display:grid;place-items:center;color:#e6007e;font-size:48px;font-weight:1000;box-shadow:0 8px 24px #0002;overflow:hidden}.public-avatar img{width:100%;height:100%;object-fit:cover}#publicName{margin:0 0 6px;font-size:28px}#publicRole{margin:0;color:#475569;font-weight:700}#publicBio{margin:12px auto 0;max-width:360px;color:#64748b;line-height:1.45}.public-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:22px 0 10px}.public-actions a,.socials a{display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border-radius:14px;border:1px solid #e5e7eb;background:#f8fafc;color:#111827;padding:12px 14px;font-weight:800}.socials{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:18px}.public-tools{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:20px}.public-qrbox{background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:18px}.public-qrbox img{display:block;width:180px;height:180px;margin:0 auto 10px;border-radius:12px}.public-qrbox strong{display:block;margin-bottom:5px}.public-qrbox small{color:#64748b;word-break:break-all}.public-brandrow{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:18px;color:#475569;font-weight:700}.public-brandrow img{width:52px;height:52px;object-fit:contain}.qrmodalcard{max-width:460px}.qr-modal-content{text-align:center}.qr-modal-content img{width:220px;height:220px;border-radius:18px;background:#fff;border:1px solid #e5e7eb;padding:10px}.qr-modal-content input{margin-top:14px}body.publicmode{display:block}body.publicmode aside,body.publicmode main{display:none}@media(max-width:900px){.public-actions,.socials{grid-template-columns:1fr}.cardrow .actions-inline{width:100%}}
.switchline{display:flex!important;grid-template-columns:none!important;flex-direction:row;align-items:center;gap:10px!important}.switchline input{width:18px;height:18px;margin:0}.status{display:inline-block;padding:2px 8px;border-radius:999px;font-weight:800}.status.on{background:#e8f8ef;color:#167b44}.status.off{background:#f3f4f6;color:#6b7280}.errorbox{color:#8b1538}.hint{display:block;margin-top:8px;color:#64748b;line-height:1.4}.public-page{display:block;background:#f4f6f9;min-height:100vh}.public-page .public-view{display:block}.public-card h1{margin:0 0 6px;font-size:28px}.public-card .role{margin:0;color:#475569;font-weight:700}.public-card .bio{margin:12px auto 0;max-width:360px;color:#64748b;line-height:1.45}.toolbtn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:9px;padding:11px 16px;font-weight:800}.toolbtn.primary{background:#e6007e;color:#fff}.source-links{margin-top:12px}.not-found p{color:#64748b}.cardrow{flex-wrap:wrap}.cardrow .info{min-width:220px}.qr{width:120px;height:auto;min-height:120px;border:1px solid #e5e7eb;border-radius:16px}.qr img{width:100px;height:100px}.brand{display:block}.public-tools button,.public-tools .toolbtn{min-height:44px}
@media(max-width:640px){body:not(.public-page){display:block}aside{position:static;width:auto;height:auto;display:block}.brandbox{height:110px}nav{grid-template-columns:1fr 1fr}nav button span,aside small{display:inline}nav button{text-align:left;font-size:14px}main{margin-left:0;width:auto}header{padding:18px;gap:12px;height:auto;flex-wrap:wrap}section{padding:18px}.phone{width:min(320px,100%)}.public-view{padding:16px}.public-card{padding-left:18px;padding-right:18px}.public-cover{margin-left:-18px;margin-right:-18px}.public-tools{display:grid;grid-template-columns:1fr}.public-tools>*{width:100%}}

/* V1.5 · Personalización de encabezado */
.header-editor{border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:18px 0 6px;margin:18px 0}
.header-editor h3{margin:0 0 4px}.sectionhint{margin:0 0 14px;color:#64748b;font-size:13px}
.header-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.panel .optioncard{display:flex;align-items:flex-start;gap:9px;border:1px solid #d8dee8;border-radius:11px;padding:11px;margin:0;cursor:pointer;background:#fff}
.panel .optioncard.selected{border-color:#e6007e;background:#fff5fa;box-shadow:0 0 0 2px #e6007e14}
.optioncard input{width:auto;margin-top:2px}.optioncard span{display:grid;gap:2px}.optioncard b{color:#172033}.optioncard small{font-weight:500;color:#64748b;line-height:1.25}
.header-setting{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:14px;margin-bottom:14px}
.header-setting[hidden]{display:none}.colorline{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center}
.colorline input[type=color]{height:46px;padding:4px;cursor:pointer}.headerupload .uploadpreview{min-height:96px}
.headerupload .uploadpreview.hasimage img{width:110px;height:62px;border-radius:9px;object-fit:cover}
@media(max-width:720px){.header-options{grid-template-columns:1fr}}

.headerupload .uploadpreview.processing{border-style:solid;background:#fff8e8;border-color:#ffd100;color:#7a5b00}.headerupload .uploadpreview.processing>span{background:#fff3c0;color:#7a5b00}.headerupload .uploadpreview.processing img{opacity:.88}
