/* BrandBot · tema claro y neutro. El naranja de BrandLab es acento, no fondo. */
:root{
  --paper:#F4F5F7; --surface:#FFFFFF; --tile:#FFFFFF; --tile2:#F1F2F5; --line:#E2E4E9; --line2:#CDD0D8;
  --ink:#1D1E22; --text:#1D1E22; --muted:#5F616B; --dim:#8A8D97;
  --orange:#FF6A00; --orange-ink:#C24E00; --orange-soft:#FFF1E6;
  /* Detalle de imprenta: tintas de proceso, solo en acentos pequeños */
  --cyan:#00A3E0; --magenta:#E6007E; --yellow:#FFC800;
  --err:#C62828; --err-soft:#FDECEC; --ok:#1E8E4E; --ok-soft:#E7F6EE;
  --r-lg:20px; --r-md:14px; --r-sm:10px;
  --shadow:0 1px 2px rgba(29,30,34,.06),0 8px 24px rgba(29,30,34,.06);
  --display:'Plus Jakarta Sans',system-ui,sans-serif; --body:'Instrument Sans',system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%}
body{background-color:var(--paper);background-image:radial-gradient(rgba(29,30,34,.075) 1px,transparent 1.3px);background-size:22px 22px;color:var(--text);font-family:var(--body);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button,input,select,textarea{font-family:inherit;font-size:16px;color:inherit}
a{color:inherit}
:focus-visible{outline:2.5px solid var(--orange);outline-offset:2px;border-radius:6px}
.hidden{display:none!important}

.wrap{max-width:480px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding:12px 12px calc(16px + env(safe-area-inset-bottom))}
.brand{display:flex;align-items:center;justify-content:space-between;padding:6px 4px 12px}
.brand .mark{font-family:var(--display);font-weight:800;font-size:21px;letter-spacing:-.02em;text-decoration:none}
.brand .mark b{color:var(--orange);font-weight:800}
.brand .by{font-size:12.5px;color:var(--dim);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand .by a{color:var(--muted)}
.brand .by a.home-btn{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line);border-radius:999px;padding:7px 13px;font-size:13.5px;font-weight:600;color:var(--ink);background:var(--surface);text-decoration:none;white-space:nowrap}
.brand .by a.home-btn:hover{border-color:var(--ink)}
.app{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 18px 18px;flex:1;display:flex;flex-direction:column;box-shadow:var(--shadow)}
/* Barra de color de imprenta en el borde superior de las tarjetas */
.app::before,.colorbar{content:'';position:absolute;top:-1px;left:22px;width:72px;height:5px;border-radius:0 0 3px 3px;background:linear-gradient(90deg,var(--cyan) 0 25%,var(--magenta) 25% 50%,var(--yellow) 50% 75%,var(--ink) 75%)}
/* Grano de papel muy suave */
body::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:60;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
/* Marca de registro animada: las tres tintas se alinean, como en una imprenta */
.reg{width:92px;height:92px;display:block}
.reg circle{fill:none;stroke-width:5;mix-blend-mode:multiply}
.reg .c{stroke:var(--cyan);animation:regc 2.4s ease-in-out infinite}
.reg .m{stroke:var(--magenta);animation:regm 2.4s ease-in-out infinite}
.reg .y{stroke:var(--yellow);animation:regy 2.4s ease-in-out infinite}
.reg line{stroke:var(--ink);stroke-width:1.5}
@keyframes regc{0%,100%{transform:translate(-7px,-4px)}45%,60%{transform:none}}
@keyframes regm{0%,100%{transform:translate(7px,-3px)}45%,60%{transform:none}}
@keyframes regy{0%,100%{transform:translate(0,7px)}45%,60%{transform:none}}

.top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.backb{width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer;flex:none}
.backb:active{transform:scale(.95)}
.backb svg{width:16px;height:16px}
.count{font-size:14px;color:var(--muted)} .count b{color:var(--ink)}
.bar{height:4px;background:var(--tile2);border-radius:4px;overflow:hidden;margin-bottom:22px}
.bar i{display:block;height:100%;width:0;background:var(--orange);border-radius:4px;transition:width .5s cubic-bezier(.2,.8,.2,1)}

#steps{position:relative;flex:1}
.step{display:none}
.step.active{display:block;animation:in .32s cubic-bezier(.2,.8,.2,1)}
.step.active.back{animation:inb .32s cubic-bezier(.2,.8,.2,1)}
@keyframes in{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
@keyframes inb{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}

h1{font-family:var(--display);font-weight:800;font-size:30px;line-height:1.1;letter-spacing:-.02em;margin:14px 0 12px;color:var(--ink)}
h2{font-family:var(--display);font-weight:700;font-size:24px;line-height:1.15;letter-spacing:-.025em;margin-bottom:8px;color:var(--ink)}
h3{font-family:var(--display);font-weight:700;font-size:18px;letter-spacing:-.015em;margin-bottom:8px}
.ac{color:inherit}
.hint{color:var(--muted);font-size:15.5px;line-height:1.55;margin-bottom:18px}
.hint b{color:var(--ink);font-weight:600}
.fine{color:var(--dim);font-size:13px;line-height:1.5}
.mt{margin-top:12px}

/* Mesa de diseño: marcas de corte de imprenta en las esquinas */
.crop{position:relative;padding:10px}
.crop::before,.crop::after,.crop>.c1,.crop>.c2{content:'';position:absolute;width:14px;height:14px;border-color:var(--line2);border-style:solid;pointer-events:none}
.crop::before{top:0;left:0;border-width:1.5px 0 0 1.5px}
.crop::after{top:0;right:0;border-width:1.5px 1.5px 0 0}
.crop>.c1{bottom:0;left:0;border-width:0 0 1.5px 1.5px}
.crop>.c2{bottom:0;right:0;border-width:0 1.5px 1.5px 0}

.minitable{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:var(--tile2);border-radius:var(--r-md);padding:10px}
.minitable img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:10px;border:2px solid transparent}
.minitable img.pick{border-color:var(--orange)}
.hero{border-radius:var(--r-md);overflow:hidden;aspect-ratio:4/3;background:var(--tile2)}
.hero img{width:100%;height:100%;object-fit:cover;display:block}
.pill{position:relative;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--ok);background:var(--ok-soft);padding:5px 11px;border-radius:999px;margin-top:14px}
.incl{list-style:none;display:grid;gap:10px;margin:4px 0 8px}
.incl li{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.45}
.incl li svg{flex:none;width:18px;height:18px;margin-top:2px;color:var(--orange)}

/* Comparación: pedido genérico vs. marca */
.versus{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0 6px}
.versus div{border-radius:var(--r-md);padding:13px 12px;font-size:13.5px;line-height:1.45}
.versus .no{background:var(--tile2);color:var(--muted)}
.versus .si{background:var(--orange-soft);color:#5a2a00}
.versus strong{display:block;font-family:var(--display);font-size:15px;margin-bottom:6px;color:var(--ink)}
.versus ul{list-style:none;display:grid;gap:5px}
.creds{border-top:1px solid var(--line);margin-top:18px;padding-top:14px;display:flex;gap:12px;align-items:center}
.creds .av{width:44px;height:44px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:15px;flex:none}
.creds img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--tile2);flex:none}
.creds p{font-size:13.5px;color:var(--muted);line-height:1.45}
.creds b{color:var(--ink);font-weight:600}

.resume{background:var(--tile2);border-radius:var(--r-md);padding:14px;margin-top:14px}
.resume p{font-size:14px;color:var(--muted);margin-bottom:10px}
.resume .row2{display:flex;gap:8px}

.in{width:100%;background:var(--surface);border:1.5px solid var(--line2);color:var(--ink);border-radius:var(--r-md);padding:14px 15px;outline:none;transition:border-color .15s,box-shadow .15s}
.in:focus{border-color:var(--ink);box-shadow:0 0 0 4px rgba(29,30,34,.08)}
textarea.in{min-height:104px;resize:vertical;line-height:1.45}
select.in{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235F616B' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;padding-right:40px}
.in::placeholder{color:#9EA1AA}
label.f{display:block;font-size:14px;font-weight:600;margin:12px 0 7px}
.counter{font-size:12px;color:var(--dim);text-align:right;margin-top:6px}
.err{color:var(--err);font-size:14px;min-height:20px;margin-top:8px}
.phone{display:grid;grid-template-columns:120px 1fr;gap:8px}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{position:relative;background:var(--surface);border:1.5px solid var(--line);border-radius:var(--r-md);cursor:pointer;text-align:center;padding:16px 10px 14px;display:flex;flex-direction:column;align-items:center;gap:8px;transition:border-color .12s,background .12s;font-weight:600;font-size:15px;line-height:1.25;color:var(--ink)}
.tile:hover{border-color:var(--line2)}
.tile:active{transform:scale(.98)}
.tile .em{font-size:28px;line-height:1}
.tile small{display:block;font-weight:400;font-size:12.5px;color:var(--muted);margin-top:2px}
.tile.sel{border-color:var(--orange);background:var(--orange-soft)}
.tile .ck{position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line2);display:grid;place-items:center;background:var(--surface);z-index:1}
.tile.sel .ck{background:var(--orange);border-color:var(--orange)}
.tile .ck svg{width:12px;height:12px;opacity:0;color:#fff}
.tile.sel .ck svg{opacity:1}
.tile.img{padding:8px 8px 12px}
.tile.img .pic{width:100%;aspect-ratio:1;border-radius:var(--r-sm);overflow:hidden;background:var(--tile2)}
.tile.img .pic img{width:100%;height:100%;object-fit:cover;display:block}
.tile.img .pic.solid{display:grid;place-items:center;font-size:38px}
.tag{position:absolute;top:-9px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px;white-space:nowrap;z-index:1}

.list{display:grid;gap:8px}
.rowopt{display:flex;align-items:center;gap:12px;background:var(--surface);border:1.5px solid var(--line);border-radius:var(--r-md);padding:11px 14px;cursor:pointer;text-align:left;font-weight:600;font-size:15.5px;color:var(--ink);transition:border-color .12s,background .12s}
.rowopt .em{width:38px;height:38px;border-radius:11px;background:var(--tile2);display:grid;place-items:center;font-size:20px;flex:none}
.rowopt .lb{flex:1}
.rowopt .rd{width:22px;height:22px;border-radius:50%;border:2px solid var(--line2);flex:none;display:grid;place-items:center}
.rowopt.sel{border-color:var(--orange);background:var(--orange-soft)}
.rowopt.sel .rd{border-color:var(--orange)}
.rowopt.sel .rd::after{content:'';width:10px;height:10px;border-radius:50%;background:var(--orange)}

.sub{font-size:14px;font-weight:600;margin:6px 0 10px;color:var(--ink)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:7px;background:var(--surface);border:1.5px solid var(--line);border-radius:999px;padding:8px 13px;cursor:pointer;font-size:14px;color:var(--ink)}
.chip .dot{width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.15)}
.chip.sel{border-color:var(--err);background:var(--err-soft);color:var(--err);text-decoration:line-through}
.note{display:flex;gap:10px;background:var(--tile2);border-radius:var(--r-md);padding:12px 13px;font-size:14px;line-height:1.45;color:var(--muted);margin-bottom:18px}
.note b{color:var(--ink);font-weight:600}
.note .em{font-size:18px}
.block{margin-bottom:18px}

details.acc{background:var(--surface);border:1.5px solid var(--line);border-radius:var(--r-md);margin-bottom:10px;overflow:hidden}
details.acc summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:600;font-size:15px;display:flex;justify-content:space-between;align-items:center;gap:10px}
details.acc summary::-webkit-details-marker{display:none}
details.acc summary small{display:block;font-weight:400;font-size:13px;color:var(--muted);margin-top:3px}
details.acc summary::after{content:'+';font-size:22px;color:var(--muted);transition:transform .2s}
details.acc[open] summary::after{transform:rotate(45deg)}
details.acc .body{padding:0 14px 14px}

.sum{display:grid;gap:6px}
.sum .row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:10px 2px}
.sum .row span{font-size:12.5px;color:var(--muted);display:block}
.sum .row strong{font-size:15px;font-weight:600;word-break:break-word}
.sum .row button{background:none;border:none;color:var(--orange-ink);font-weight:600;font-size:14px;cursor:pointer;flex:none;padding:6px}

.nav{margin-top:18px}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;border:none;border-radius:var(--r-md);padding:16px 18px;font-weight:600;font-size:16.5px;cursor:pointer;text-decoration:none;width:100%;transition:transform .08s,background .15s}
.btn:active{transform:scale(.985)}
.btn.primary{background:var(--ink);color:#fff}
.btn.primary:hover{background:#000}
.btn.primary:disabled{background:#D9DBE1;color:#8A8D97;cursor:not-allowed}
.btn.accent{background:var(--orange);color:#fff}
.btn.ghost{background:var(--surface);color:var(--ink);border:1.5px solid var(--line2)}
.btn.google{background:var(--surface);color:var(--ink);border:1.5px solid var(--line2)}
.btn.google svg{width:18px;height:18px}
.btn.small{padding:11px 14px;font-size:15px;border-radius:12px}
.btn svg{width:18px;height:18px}
.trust{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--dim);font-size:12.5px;margin-top:12px}
.trust svg{width:14px;height:14px;color:var(--ok)}
.spin{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:sp .7s linear infinite}
.btn.ghost .spin,.btn.google .spin{border-color:rgba(0,0,0,.15);border-top-color:var(--ink)}
@keyframes sp{to{transform:rotate(360deg)}}
.okmark{width:64px;height:64px;margin:6px 0 4px}
.okmark circle{fill:none;stroke:var(--ok);stroke-width:4;stroke-dasharray:214;stroke-dashoffset:214;animation:dr .6s ease forwards}
.okmark path{fill:none;stroke:var(--ok);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:50;stroke-dashoffset:50;animation:dr .4s .45s ease forwards}
@keyframes dr{to{stroke-dashoffset:0}}
.divider{display:flex;align-items:center;gap:10px;color:var(--dim);font-size:13px;margin:16px 0}
.divider::before,.divider::after{content:'';flex:1;height:1px;background:var(--line)}
.tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--tile2);border-radius:12px;padding:4px;margin-bottom:18px}
.tabs button{border:none;background:none;padding:10px;border-radius:9px;font-weight:600;font-size:15px;color:var(--muted);cursor:pointer}
.tabs button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.linkbtn{background:none;border:none;color:var(--muted);font-size:14px;text-decoration:underline;cursor:pointer;padding:8px}
.box{border:1.5px solid var(--line);border-radius:var(--r-md);padding:16px;margin-top:12px}
.box.featured{border-color:var(--ink)}
.price{display:flex;align-items:baseline;gap:8px;margin:4px 0 12px}
.price strong{font-family:var(--display);font-size:28px;letter-spacing:-.02em}
.price s{color:var(--dim);font-size:15px}
canvas#confetti{position:fixed;inset:0;pointer-events:none;z-index:50}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media (max-width:360px){h1{font-size:28px}h2{font-size:21px}.tile{font-size:14px}}
