/* shop.css — Seguimiento de pedido y taller. Colores y fuentes de /css/tokens.css (guía URI://STUDIO). */
:root{--bg:var(--background);--ink:var(--foreground);--mute:var(--muted-foreground);--line:var(--border);--brand:var(--primary);--brand-d:var(--primary);--ok:var(--success);--bad:var(--destructive);--r:var(--radius-lg)}
*{box-sizing:border-box}
body{margin:0;font-family:var(--font-sans);background:var(--bg);color:var(--ink);line-height:1.5}
h1,h2{font-family:var(--font-display);font-weight:500}
a{color:inherit}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
header.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--background) 86%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font:700 1rem/1 var(--font-display);letter-spacing:.02em;text-decoration:none}
.logo span{color:var(--brand)}
nav a{margin-left:18px;text-decoration:none;color:var(--mute);font-size:.95rem}
nav a:hover{color:var(--ink)}
nav a{white-space:nowrap}
@media(max-width:640px){header.top .wrap{height:auto;flex-wrap:wrap;padding:8px 0;gap:4px}nav{display:flex;flex-wrap:wrap;align-items:center}nav a{margin-left:0;margin-right:14px}}
nav a.btn{color:var(--primary-foreground)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:var(--radius);min-height:44px;padding:0 18px;font:inherit;font-weight:600;cursor:pointer;background:var(--brand);color:var(--primary-foreground);text-decoration:none}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--input)}
.btn.ghost:hover{background:var(--muted);filter:none}
.btn.sm{min-height:36px;padding:0 12px;font-size:.85rem}
.btn:disabled{opacity:.5;cursor:not-allowed}
.hero{padding:64px 0 40px;text-align:center}
.hero h1{font-size:clamp(2rem,5vw,3.2rem);line-height:1.1;margin:0 0 14px;letter-spacing:-.03em}
.hero p{color:var(--mute);font-size:1.1rem;max-width:560px;margin:0 auto 24px}
.perks{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:22px;color:var(--mute);font-size:.9rem}
.perks span{background:var(--card);border:1px solid var(--line);border-radius:99px;padding:4px 12px}
h2{font-size:1.5rem;letter-spacing:-.02em;margin:40px 0 16px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:6px}
.card .em{font-size:2.2rem}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:var(--muted)}
.card h3{margin:4px 0 0;font-size:1.05rem}
.card p{margin:0;color:var(--mute);font-size:.9rem;flex:1}
.price{font-weight:700}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:40px}
.steps div{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px;font-size:.95rem}
.steps b{display:block;margin-bottom:4px}
footer{border-top:1px solid var(--line);padding:28px 0;color:var(--mute);font-size:.85rem;margin-top:40px}
dialog{border:1px solid var(--line);border-radius:var(--r);padding:0;width:min(560px,94vw);max-height:92vh;background:var(--card);color:var(--ink);box-shadow:var(--shadow-pop)}
dialog::backdrop{background:var(--backdrop)}
.dlg{padding:22px;display:flex;flex-direction:column;gap:14px}
.dlg h3{margin:0;font-size:1.25rem}
label{display:flex;flex-direction:column;gap:4px;font-size:.88rem;font-weight:600}
input,select,textarea{font:inherit;font-size:1rem;min-height:44px;padding:9px 11px;border:1px solid var(--input);border-radius:var(--radius-sm);background:var(--background);color:var(--ink);width:100%}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--ring);outline-offset:1px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.swatches{display:flex;flex-wrap:wrap;gap:8px}
.sw{width:34px;height:34px;border-radius:50%;border:2px solid var(--line);cursor:pointer;padding:0;position:relative}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.chip{min-width:34px;height:38px;border:2px solid #d1d5db;border-radius:8px;background:repeating-conic-gradient(#e5e7eb 0 25%,#fff 0 50%) 0 0/10px 10px;font-size:1.2rem;font-weight:800;cursor:pointer;text-shadow:0 0 1px #000}
.chip.on{border-color:var(--brand);box-shadow:0 0 0 3px #c7d2fe}
.chip:disabled{opacity:.4}
.sw.on{border-color:var(--brand);box-shadow:0 0 0 3px #c7d2fe}
.sw.on::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;font-weight:800;color:#fff;text-shadow:0 0 3px #000,0 0 3px #000}
.preview{border-radius:12px;background:repeating-conic-gradient(#e5e7eb 0 25%,#f3f4f6 0 50%) 0 0/20px 20px;text-align:center;padding:22px;font-size:2rem;font-weight:800;min-height:80px;word-break:break-all;-webkit-text-stroke:1px rgba(0,0,0,.25)}
.preview.photo{padding:10px;background:#f3f4f6;-webkit-text-stroke:0}
.preview.photo img{max-width:100%;max-height:240px;border-radius:8px;object-fit:cover;filter:grayscale(1) contrast(1.1)}
.preview.photo img.plain{filter:none}
[hidden]{display:none!important}
.preview{position:sticky;top:0;z-index:3;box-shadow:0 6px 12px -8px rgba(0,0,0,.35)}
#dlgProduct{width:min(1040px,96vw)}
.dlg.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:22px;align-items:start;max-height:92vh;overflow:auto}
.dlg-opts{display:flex;flex-direction:column;gap:14px;min-width:0}
.dlg-prev{display:flex;flex-direction:column;gap:12px;position:sticky;top:0;min-width:0}
.dlg-prev .preview{position:static}
.dlg-prev .v3d{flex:1 1 auto;min-height:380px;height:100%}
@media(max-width:760px){.dlg.split{grid-template-columns:1fr}.dlg-prev{display:contents}.dlg-prev .preview{order:-1;position:sticky;top:0;z-index:4}.dlg-prev .v3d{height:240px}}
.preview.v3{padding:0;overflow:hidden;font-size:1rem;font-weight:400;-webkit-text-stroke:0;text-align:center;min-height:0}
.v3d{width:100%;height:280px;cursor:grab;touch-action:none}
.v3d canvas{width:100%!important;height:100%!important;display:block}
.v3info{padding:6px 10px 8px;font-size:.8rem}
.v3info img.plain{max-width:100%;max-height:260px;border-radius:8px;object-fit:cover}
.tabs{display:flex;gap:6px;justify-content:center;margin-top:4px}
.tab{border:1px solid var(--line);background:var(--card);color:var(--mute);border-radius:999px;padding:3px 12px;font-size:.78rem;cursor:pointer}
.tab.on{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}
.preview .warn{font-size:.8rem;font-weight:600;color:var(--warning);background:var(--muted);border-radius:6px;padding:4px 8px;margin-top:4px}
.range-row{display:flex;gap:10px;align-items:center}.range-row input[type=range]{flex:1;min-width:0;accent-color:#38e622;cursor:pointer}.range-row b{min-width:48px;white-space:nowrap;text-align:right;color:#38e622;font-family:monospace}
.quote{background:var(--muted);border:1px solid var(--line);border-radius:12px;padding:12px;font-size:.92rem}
.quote .tot{font-weight:800;font-size:1.2rem}
.muted{color:var(--mute);font-size:.85rem}
.err{color:var(--bad);font-size:.88rem;min-height:1.2em}
.ok{color:var(--ok)}
.actions{display:flex;gap:10px;justify-content:flex-end}
#cartCount{background:var(--primary-foreground);color:var(--brand);border-radius:99px;padding:0 7px;font-size:.75rem;margin-left:6px}
.line{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:.92rem}
.line:last-child{border:0}
.chk{flex-direction:row;align-items:flex-start;font-weight:400;gap:8px}
.chk input{width:auto;margin-top:4px}
.box{max-width:520px;margin:48px auto;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:24px;display:flex;flex-direction:column;gap:12px}
.timeline{display:flex;gap:6px;margin:10px 0}
.timeline i{flex:1;height:6px;border-radius:3px;background:var(--line)}
.timeline i.on{background:var(--brand)}
.litho-light-ctrl{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#151922;border:1px solid #232936;border-radius:12px;padding:8px 14px;box-shadow:0 4px 12px rgba(0,0,0,0.18)}
.litho-light-title{font-size:.85rem;font-weight:700;color:#e2e8f0;display:flex;align-items:center;gap:6px}
.litho-light-tabs{display:flex;gap:6px}
.litho-light-tabs .tab{border:1px solid #334155;background:#1e293b;color:#94a3b8;font-weight:600;padding:5px 12px;border-radius:20px;cursor:pointer;font-size:.8rem;transition:all .15s ease}
.litho-light-tabs .tab:hover{color:#fff;border-color:#475569}
.litho-light-tabs .tab.on.light-on{background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#0f172a;border-color:#f59e0b;box-shadow:0 0 12px rgba(251,191,36,0.5);font-weight:800}
.litho-light-tabs .tab.on.light-off{background:#334155;color:#f8fafc;border-color:#64748b;font-weight:800}
.support-badge{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;padding:5px 12px;border-radius:999px;margin-top:6px;font-weight:600;transition:all .2s ease}
.support-badge.ok{background:rgba(56,230,34,0.12);color:#38e622;border:1px solid rgba(56,230,34,0.35)}
.support-badge.warn{background:rgba(239,68,68,0.15);color:#ef4444;border:1px solid rgba(239,68,68,0.4);box-shadow:0 0 10px rgba(239,68,68,0.2)}

/* Línea de estado del pedido (seguimiento) */
ol.order-tl{list-style:none;margin:8px 0 4px;padding:0;display:flex;flex-direction:column}
ol.order-tl li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;padding-bottom:16px;position:relative}
ol.order-tl li::after{content:"";position:absolute;left:13px;top:28px;bottom:2px;width:2px;background:var(--line)}
ol.order-tl li:last-child::after{display:none}
ol.order-tl li.done::after{background:var(--ok)}
ol.order-tl .dot{width:28px;height:28px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;background:var(--card);z-index:1}
ol.order-tl .dot svg{width:14px;height:14px}
ol.order-tl li.done .dot{background:var(--ok);border-color:var(--ok);color:var(--card)}
ol.order-tl li.now .dot{border-color:var(--primary);color:var(--primary);box-shadow:0 0 0 4px var(--primary-soft)}
ol.order-tl b{display:block;font-weight:600}
ol.order-tl span{color:var(--mute);font-size:.88rem}
ol.order-tl li.todo b{color:var(--mute);font-weight:500}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}

/* Aviso de idioma elegido automáticamente (i18n.js) */
.lang-notice { position: fixed; left: 16px; bottom: 24px; z-index: 9980; max-width: min(440px, calc(100vw - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); font-size: .88rem; }
.lang-notice span { flex: 1 1 160px; }
.lang-notice select, .lang-notice button { min-height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--background); color: var(--foreground); font: inherit; cursor: pointer; }
.lang-notice button { background: var(--primary); color: var(--primary-foreground); border-color: transparent; font-weight: 600; }
@media (max-width: 560px) { .lang-notice { bottom: 88px; } }
