/* Tienda en línea de DEMOSTRACIÓN de un proveedor (no es de Obra3D). */
:root { --brand: #0f766e; --ink: #1c1917; --soft: #78716c; --line: #e7e5e4; --paper: #faf8f5; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--soft); }
.topbar { background: var(--ink); color: #f5f5f4; text-align: center; font-size: 12.5px; padding: 8px 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,248,245,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px Fraunces, serif; letter-spacing: -.01em; }
.brand-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--brand); color: #fff; font: 800 15px Inter, sans-serif; }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-weight: 600; font-size: 14px; }
.nav-3d, .link { border: 0; background: none; font: inherit; cursor: pointer; color: var(--brand); font-weight: 700; padding: 0; }
.nav-3d .cube { display: inline-block; transform: rotate(45deg) scale(.8); }
.cart-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 700 14px Inter, sans-serif; cursor: pointer; }
.cart-btn span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; margin-left: 4px; }
@media (max-width: 720px) { .main-nav a { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 700 14px Inter, sans-serif; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.small { padding: 8px 12px; font-size: 12.5px; }
.btn.big { width: 100%; padding: 16px 22px; font-size: 15.5px; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.hero h1 { font: 600 clamp(34px, 5vw, 58px)/1.02 Fraunces, serif; letter-spacing: -.02em; margin: 12px 0 14px; }
.hero h1 em { color: var(--brand); }
.hero p { font-size: 17px; color: #57534e; max-width: 460px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-photo { position: relative; display: block; }
.hero-tag { position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.4); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* Las fichas no tienen fotos: un «estudio» del color del producto hace de foto. */
.photo { position: relative; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--c) 18%, #fff), color-mix(in srgb, var(--c) 58%, #e7e5e4)); }
.photo::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 18%; height: 26%; border-radius: 18px 18px 8px 8px; background: color-mix(in srgb, var(--c) 85%, #000); box-shadow: 0 30px 40px -24px rgba(0,0,0,.6); }
.photo.big { aspect-ratio: 5/4; border-radius: 28px; }
.photo-name { position: absolute; left: 14px; top: 12px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.45); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 16px; }
.section-title h2 { font: 600 28px Fraunces, serif; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 24px; padding: 10px; box-shadow: 0 1px 0 var(--line), 0 18px 30px -28px rgba(0,0,0,.4); }
.card .photo { border-radius: 18px; }
.card-body { padding: 12px 6px 6px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-weight: 700; line-height: 1.3; }
.card-dots { display: flex; gap: 5px; }
.card-dots span { width: 12px; height: 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.card-price { font-weight: 800; font-size: 17px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.crumbs { margin: 26px 0 14px; font-size: 13px; color: var(--soft); }
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.detail-media { position: relative; }
.cta-3d-own { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px; border: 0; cursor: pointer; font: 800 15px Inter, sans-serif; color: #fff; background: rgba(28,25,23,.78); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: transform .2s; }
.cta-3d-own:hover { transform: translateY(-2px); }
.cta-3d-own .dot { width: 10px; height: 10px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.3); }
.detail-info { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.detail-info h1 { font: 600 34px/1.1 Fraunces, serif; margin: 0; letter-spacing: -.01em; }
.sku { margin: 0; color: var(--soft); font: 12px ui-monospace, monospace; }
.detail-price { font-size: 28px; font-weight: 800; }
.label { margin: 4px 0 0; font-size: 14px; }
.chip { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; }
.swatches { display: flex; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.sw.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.perks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; font-size: 13.5px; color: #57534e; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail-info { position: static; } }
.empty { padding: 80px 0; text-align: center; color: var(--soft); }

.site-footer { margin-top: 80px; padding: 40px 0; border-top: 1px solid var(--line); background: #fff; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-row p { margin: 6px 0 0; max-width: 460px; }

/* Carrito de la tienda */
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2147481000; width: min(380px, 100vw); background: #fff; box-shadow: -30px 0 60px -30px rgba(0,0,0,.4); transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding: 18px; gap: 12px; }
.cart.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.cart-head button, .cart-list button { border: 0; background: #f5f5f4; width: 30px; height: 30px; border-radius: 999px; cursor: pointer; font-size: 16px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.cart-list li { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: var(--paper); }
.cart-list li div { flex: 1; min-width: 0; }
.cart-list b { display: block; font-size: 13.5px; }
.cart-list small { display: block; color: var(--soft); font-size: 12px; }
.cart-sw { width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cart-total { display: flex; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; }
.cart-empty { margin: 30px 0; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 2147482500; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: all .3s; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Panel de la demostración (de Obra3D, no de la tienda) ───────── */
.demo-panel { position: fixed; left: 16px; bottom: 16px; z-index: 2147482000; width: 350px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #101217; color: #e8e6e1; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); font: 13px/1.4 Inter, system-ui, sans-serif; overflow: hidden; }
.demo-panel.min { width: auto; }
.demo-panel.min .dp-body { display: none; }
.dp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; user-select: none; font-weight: 700; font-size: 12px; }
.dp-head img { height: 18px; }
.dp-badge { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgba(34,197,94,.15); color: #86efac; font-size: 10.5px; }
.dp-toggle { opacity: .6; }
.dp-body { overflow-y: auto; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.dp-sec { background: rgba(255,255,255,.04); border-radius: 14px; padding: 10px 12px; }
.dp-sec h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8c93a1; }
.dp-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.dp-row select { background: #1c1f26; color: #e8e6e1; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 4px 6px; font: inherit; }
.dp-log { display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; font: 11px ui-monospace, monospace; }
.dp-ev { padding: 5px 7px; border-radius: 8px; background: rgba(255,255,255,.05); }
.dp-ev b { color: #5eead4; }
.dp-ev span { color: #8c93a1; }
.dp-ev code { display: block; color: #c8d3e6; word-break: break-all; margin-top: 2px; }
.dp-btn { padding: 7px 10px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; font: 700 12px Inter, sans-serif; cursor: pointer; }
.dp-btn.alt { background: rgba(255,255,255,.1); }
.dp-code { white-space: pre-wrap; word-break: break-all; font: 10.5px ui-monospace, monospace; color: #c8d3e6; background: #0b0c10; border-radius: 10px; padding: 8px; margin: 0; }
.dp-note { color: #8c93a1; font-size: 11.5px; margin: 0; }
@media (max-width: 720px) { .demo-panel { left: 8px; right: 8px; width: auto; bottom: 8px; } .demo-panel:not(.min) { max-height: 55vh; } }
