:root{--accent:#e8b9cf;--strip:#fac6e0;--bg:#fff;--ink:#302a2e;--line:#eadde4}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button,a.btn{cursor:pointer;border:0;background:var(--accent);border-radius:22px;padding:12px 20px;font-weight:600;display:inline-block;text-align:center}button:disabled{opacity:.5;cursor:not-allowed}button.secondary,.btn.secondary{background:white;border:1px solid var(--line)}button.danger{background:#fff0f2;color:#a52d49}input,select,textarea{background:#fff;border:1px solid #d9cad2;border-radius:8px;padding:11px;width:100%;min-width:0}textarea{min-height:78px;resize:vertical}label{display:grid;gap:6px;margin:10px 0;font-size:13px;font-weight:600}h1,h2,h3,p{margin-top:0}h1{font-size:26px;font-weight:500}h2{font-size:22px;font-weight:500}h3{font-size:16px}small,.muted{color:#796973}#strip{background:var(--strip);text-align:center;padding:12px;font-size:13px;letter-spacing:.07em}header{border-bottom:1px solid var(--line);padding:20px max(4vw,16px);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:13px}#brand{font-size:24px;letter-spacing:.1em;display:flex;align-items:center}#brand img{max-height:64px;max-width:200px;object-fit:contain}main{max-width:1330px;margin:0 auto;padding:24px 24px 56px}.finder{max-width:510px;margin:0 auto 28px;text-align:center;background:color-mix(in srgb,var(--accent) 12%,white);border:1px solid var(--line);padding:26px;border-radius:20px}.finder button{width:100%;margin-top:12px}.finder h1{margin:13px 0}.finder p{color:#796973}.bow{font-size:30px}.banner img{width:100%;display:block;border-radius:12px;max-height:420px;object-fit:cover}.banner{margin-bottom:22px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:18px 0}.toolbar button{padding:9px 15px;background:white;border:1px solid var(--line);font-size:13px}.toolbar button.active{background:var(--accent)}.toolbar input{max-width:250px;margin-left:auto}.catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}.product{text-align:center;min-width:0}.product .photo,.photo{aspect-ratio:4/5;background:#faf4f7;display:grid;place-items:center;color:#a18c98;border-radius:6px;overflow:hidden}.photo img{width:100%;height:100%;object-fit:contain}.product h3{margin:12px 0 6px;font-weight:500}.product button{margin:8px 0;padding:9px 14px;font-size:13px}.tag{font-size:12px;background:#f5edf1;border-radius:12px;padding:5px 10px;display:inline-block}.section{margin-top:38px;padding:30px;text-align:center;background:#fff5f9;border-radius:16px}.section p{white-space:pre-line}.notice{padding:12px;border-radius:8px;background:#f3edf2;margin:10px 0;white-space:pre-wrap}.notice:empty{display:none}.error{background:#ffeced;color:#9c2541}.float{position:fixed;bottom:20px;right:20px;background:#277a4d;color:white;padding:13px 18px;border-radius:30px;box-shadow:0 4px 18px #0002}footer{text-align:center;padding:25px;border-top:1px solid var(--line);font-size:13px}dialog{border:1px solid var(--line);border-radius:16px;width:min(560px,94vw);max-height:90vh;padding:22px;color:var(--ink)}dialog::backdrop{background:#0005}.flex{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.admin{max-width:1150px}.panel{border:1px solid var(--line);border-radius:14px;padding:20px;margin:15px 0;background:white}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.wide{grid-column:1/-1}.auth{max-width:410px;margin:30px auto}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs button{background:white;border:1px solid var(--line)}.tabs .active{background:var(--accent)}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:10px;border-bottom:1px solid var(--line);text-align:left}td button{font-size:12px;padding:7px 10px} .tablewrap{overflow:auto}.thumb{width:42px;height:50px;object-fit:contain;background:#f8f1f5} .check{display:flex;align-items:center;gap:8px}.check input{width:auto}.previewimg{width:100px;height:100px;object-fit:contain}.hidden,[hidden]{display:none!important}@media(max-width:760px){.catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}header{justify-content:center;gap:14px}nav{justify-content:center;gap:12px}main{padding:16px 14px 40px}.formgrid{grid-template-columns:1fr}.toolbar input{margin:0;max-width:none}.section{padding:22px}.finder{padding:20px}}

/* Vista individual de producto */
.product button.product-hit{display:block;width:100%;background:transparent;border:0;border-radius:0;padding:0;margin:0;font-weight:400;font-size:inherit}.product-hit .photo{width:100%}.product-name{display:block;font-size:16px;margin:12px 0 6px;font-weight:500}.product-hit:hover .product-name{text-decoration:underline}.product-hit:focus-visible{outline:2px solid var(--ink);outline-offset:4px}.product-hit img{transition:transform .2s}.product-hit:hover img{transform:scale(1.025)}
body.detail-open{overflow:hidden}#detail{width:min(1200px,96vw);max-width:96vw;max-height:94vh;max-height:94dvh;padding:clamp(16px,3vw,36px);background:var(--bg);overflow:auto;overscroll-behavior:contain}#detail::backdrop{background:#0008}.detail-top{display:flex;justify-content:flex-end;margin-bottom:16px}.detail-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(24px,5vw,64px);align-items:start}.gallery{min-width:0}.gallery-frame{position:relative;background:color-mix(in srgb,var(--accent) 10%,var(--bg));border-radius:12px;overflow:hidden}.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;aspect-ratio:4/5;max-height:72vh;max-height:72dvh}.gallery-track::-webkit-scrollbar{display:none}.gallery-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center}.gallery-slide img{width:100%;height:100%;min-height:0;object-fit:contain;user-select:none}.gallery-empty{padding:25px;color:var(--ink);text-align:center}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;padding:0;font-size:30px;line-height:1;background:var(--bg);border:1px solid var(--line);box-shadow:0 2px 10px #0001}.gallery-arrow.prev{left:10px}.gallery-arrow.next{right:10px}.gallery-count{position:absolute;bottom:12px;right:12px;padding:6px 12px;border-radius:30px;background:var(--bg);font-size:12px}.gallery-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;padding:8px 0}.gallery-dots button{position:relative;background:transparent;padding:0;width:26px;height:28px;border:0}.gallery-dots button:after{content:'';position:absolute;inset:9px 8px;border-radius:50%;background:var(--line)}.gallery-dots button.active:after{background:var(--ink)}.detail-info{padding-top:10px;min-width:0}.detail-info h2{font-size:clamp(24px,3.2vw,40px);margin-bottom:12px;overflow-wrap:anywhere}#dprice{font-size:26px;font-weight:600;margin-bottom:20px}#ddesc{line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}#dstock{margin:14px 0}.detail-info #addCart,.detail-info #dcontact{width:100%;margin:5px 0}.detail-info select{margin-top:5px}@media(max-width:760px){#detail{margin:0;width:100%;max-width:100%;height:100%;height:100dvh;max-height:100%;max-height:100dvh;border:0;border-radius:0;padding:14px}.detail-top{position:sticky;top:0;background:var(--bg);z-index:2;padding:6px 0;margin-bottom:8px}.detail-layout{grid-template-columns:minmax(0,1fr);gap:12px}.gallery-track{max-height:62vh;max-height:62dvh}.detail-info{padding:0 4px 20px}.gallery-arrow{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.product-hit img{transition:none}}

/* Interruptores de configuración */
.featuregroup{border:1px solid var(--line);border-radius:14px;padding:16px;margin:16px 0;background:#fff}.featuregroup h3{margin:0 0 6px}.feature-switch{display:flex;position:relative;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;margin:0;border-bottom:1px solid var(--line);cursor:pointer;font-size:14px;font-weight:500}.feature-switch:last-child{border-bottom:0}.feature-switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0}.switch-track{width:46px;height:26px;flex:0 0 46px;background:#9b9298;border-radius:20px;position:relative;transition:background .15s}.switch-track:after{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;background:white;border-radius:50%;box-shadow:0 1px 3px #0003;transition:transform .15s}.feature-switch input:checked+.switch-track{background:#277a4d}.feature-switch input:checked+.switch-track:after{transform:translateX(20px)}.feature-switch input:focus-visible+.switch-track{outline:3px solid #67345a;outline-offset:3px}.product .product-hit:focus-visible{outline:2px solid var(--ink)}

/* V9: galería sin marco rosa, conserva proporciones originales */
#detail .gallery-frame,#detail .gallery-track,#detail .gallery-slide{background:#fff;border-radius:0;}
#detail .gallery-slide{min-height:0;overflow:hidden;}
#detail .gallery-slide img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;}
#detail .gallery-arrow,#detail .gallery-count{background:#fff;color:#302a2e;}
#activeModel{margin-bottom:14px;}
#organizeRows select{min-width:160px;}
#faviconPreview img{width:64px;height:64px;object-fit:contain;}

/* Conditional price captions */
.product-discounts{color:#48644e;font-size:.81rem;line-height:1.4;font-weight:600;overflow-wrap:anywhere;}
.product-discounts:empty{display:none;}
.product-discounts small{display:block;color:var(--ink);font-weight:400;font-size:.73rem;margin-top:3px;}
.detail-info #dprice{margin-bottom:4px;}
.detail-info .product-discounts{font-size:.98rem;margin:0 0 14px;}

/* V12 · centered storefront header, adjustable image and spacing */
#storeHeader{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:12px;align-items:center;padding:var(--headerTop,14px) var(--headerRight,16px) var(--headerBottom,14px) var(--headerLeft,16px);}
#storeHeader .header-left{grid-column:1;justify-content:flex-start;min-width:0;overflow-wrap:anywhere;}
#storeHeader .header-right{grid-column:3;justify-content:flex-end;min-width:0;overflow-wrap:anywhere;}
#storeHeader #brand{grid-column:2;grid-row:1;justify-content:center;text-align:center;min-width:0;max-width:100%;font-size:var(--headerTextSize,24px);overflow-wrap:anywhere;}
#storeHeader #brand>img{width:auto;max-width:var(--headerWidth,100%);height:auto;max-height:var(--headerHeight,96px);object-fit:contain;}
#storeHeader.header-banner-mode{grid-template-columns:1fr 1fr;}
#storeHeader.header-banner-mode #brand{grid-column:1/-1;grid-row:1;display:block;width:var(--headerWidth,100%);justify-self:center;}
#storeHeader.header-banner-mode #brand picture{display:block;width:100%;}
#storeHeader.header-banner-mode #brand img{display:block;width:100%;height:var(--headerHeight,96px);max-width:none;max-height:none;object-fit:var(--headerFit,contain);object-position:var(--headerPositionX,50%) var(--headerPositionY,50%);}
#storeHeader.header-banner-mode .header-left{grid-column:1;grid-row:2;}
#storeHeader.header-banner-mode .header-right{grid-column:2;grid-row:2;}
@media(max-width:760px){#storeHeader,#storeHeader.header-banner-mode{grid-template-columns:minmax(0,1fr);gap:10px;padding-left:min(var(--headerLeft,16px),18vw);padding-right:min(var(--headerRight,16px),18vw);}#storeHeader #brand,#storeHeader.header-banner-mode #brand{grid-column:1;grid-row:1;font-size:var(--headerMobileTextSize,22px);}#storeHeader .header-left,#storeHeader.header-banner-mode .header-left{grid-column:1;grid-row:2;justify-content:center;}#storeHeader .header-right,#storeHeader.header-banner-mode .header-right{grid-column:1;grid-row:3;justify-content:center;}#storeHeader #brand>img{max-height:var(--headerMobileHeight,80px);}#storeHeader.header-banner-mode #brand img{height:var(--headerMobileHeight,80px);}}
.header-admin-image{display:block;max-width:100%;max-height:130px;object-fit:contain;margin:8px 0;}
.device-stage{overflow:auto;max-width:100%;background:#f3f0f2;border-radius:12px;padding:16px;}
#deviceFrame{margin:0 auto;box-sizing:content-box;border:6px solid #302a2e;border-radius:18px;overflow:hidden;background:white;flex-shrink:0;}
#storePreview{border:0;display:block;width:100%;height:100%;background:white;}
