:root{--primary:#087cf4;--button:#19c967;--bg:#f5f7fb;--text:#142033;--muted:#718096;--card:#fff;--line:#e6ebf2}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text);padding-bottom:88px}.store-header{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 3px 18px #14203312}.header-inner{max-width:760px;margin:auto;min-height:70px;padding:10px 16px;display:flex;align-items:center;justify-content:space-between}.store-brand{display:flex;align-items:center;gap:11px;min-width:0;flex:1}.store-brand-text{min-width:0;overflow:hidden}.store-brand-text strong,.store-brand-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.header-action{border:0;display:grid;place-items:center;cursor:pointer}.whatsapp-header{width:42px;height:42px;border-radius:13px;background:#eef8f1;padding:7px}.whatsapp-header .wa-logo{width:100%;height:100%;object-fit:contain;display:block}.header-action:active,.icon-btn:active{transform:scale(.97)}.store-logo{width:48px;height:48px;border-radius:14px;background:var(--primary);color:white;display:grid;place-items:center;font-weight:900;overflow:hidden;font-size:16px}.store-logo img{width:100%;height:100%;object-fit:cover}.store-brand strong{display:block;font-size:18px}.store-brand small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.icon-btn{border:0;background:#eef5ff;color:var(--primary);width:42px;height:42px;border-radius:13px;font-size:25px}.search-wrap{max-width:760px;margin:0 auto;padding:0 16px 12px;display:none;gap:8px}.search-wrap.show{display:flex}.search-wrap input{flex:1;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:16px}.search-wrap button{border:0;background:#edf1f6;border-radius:12px;width:44px;font-size:22px}.hero-store{max-width:760px;margin:auto;padding:28px 16px 22px;background:linear-gradient(135deg,var(--primary),#101828);color:#fff;border-radius:0 0 26px 26px;min-height:170px;display:flex;align-items:end}.hero-store h1{font-size:30px;line-height:1.08;margin:7px 0}.hero-store p{margin:0;opacity:.86}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.15em;opacity:.72}.category-strip{max-width:760px;margin:auto;padding:15px 16px 8px;display:flex;gap:8px;overflow:auto;scrollbar-width:none}.category-strip::-webkit-scrollbar{display:none}.category-chip{border:1px solid var(--line);background:#fff;color:#4b5565;padding:10px 15px;border-radius:999px;white-space:nowrap;font-weight:700}.category-chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}#categoryChips{display:flex;gap:8px}.catalog{max-width:760px;margin:auto;padding:8px 16px}.category-title{font-size:19px;margin:18px 0 10px}.product-list{display:grid;gap:10px}.product-row{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:10px;display:grid;grid-template-columns:74px 1fr auto;gap:11px;align-items:center;box-shadow:0 4px 15px #14203308}.product-img{width:74px;height:74px;border-radius:12px;background:linear-gradient(135deg,#e9eef6,#d6deea);display:grid;place-items:center;color:#7b8798;font-size:10px;text-align:center;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover}.product-row h3{font-size:15px;margin:0 0 4px}.product-row p{font-size:12px;color:var(--muted);margin:0 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.price{font-weight:900}.add-btn{border:0;background:var(--button);color:#fff;width:40px;height:40px;border-radius:13px;font-size:22px}.empty{padding:45px 15px;text-align:center;color:var(--muted)}.cart-dock{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:12px;width:min(728px,calc(100% - 24px));background:#111827;color:#fff;border-radius:18px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 14px 35px #0004}.cart-dock span{display:block;font-size:11px;color:#aab4c5}.cart-dock strong{font-size:17px}.cart-dock button,.send-order{border:0;background:var(--button);color:#fff;padding:13px 16px;border-radius:13px;font-weight:900}.drawer-backdrop,.product-modal{position:fixed;inset:0;background:#08111dcc;z-index:50;display:none;align-items:flex-end;justify-content:center;overflow-y:auto;padding:12px}.drawer-backdrop.show,.product-modal.show{display:flex}.cart-drawer,.product-card{width:min(760px,100%);background:#fff;border-radius:24px 24px 0 0;padding:22px 18px 25px;max-height:calc(100vh - 24px);overflow-y:auto;overflow-x:hidden;position:relative;flex:0 0 auto}.drawer-close{position:absolute;right:16px;top:14px;border:0;background:#eef1f5;border-radius:10px;width:38px;height:38px;font-size:23px}.cart-drawer h2,.product-card h2{margin:7px 0 16px}.cart-item{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.cart-item small{display:block;color:var(--muted);margin-top:4px}.cart-item button{border:0;background:#f0f2f5;border-radius:8px}.cart-total{display:flex;justify-content:space-between;font-size:19px;padding:18px 0}.cart-drawer label{display:block;font-size:12px;font-weight:800;margin:10px 0}.cart-drawer input{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:11px;margin-top:6px;font-size:15px}.send-order{width:100%;margin-top:10px}.clear-cart{width:100%;border:0;background:#f0f2f5;padding:11px;border-radius:11px;margin-top:8px}.product-modal{align-items:center;padding:12px}.product-card{border-radius:24px;max-width:500px;max-height:calc(100vh - 24px);margin:auto}.product-photo{height:240px;border-radius:18px;background:#eef2f7;display:grid;place-items:center;overflow:hidden;font-size:12px;color:#8994a5}.product-photo img{width:100%;height:100%;object-fit:cover}.product-card p{color:var(--muted);line-height:1.5;overflow-wrap:anywhere;word-break:break-word;max-height:26vh;overflow-y:auto;margin-bottom:10px;padding-right:4px}.product-price{font-size:25px;display:block;margin:14px 0}.qty{display:flex;align-items:center;justify-content:center;gap:25px;margin:15px 0}.qty button{border:0;background:#edf1f6;width:42px;height:42px;border-radius:12px;font-size:22px}.qty span{font-weight:900;font-size:20px}@media(min-width:760px){.hero-store{border-radius:0 0 26px 26px}.drawer-backdrop{align-items:center;padding:20px}.cart-drawer{border-radius:24px;max-width:600px}.product-modal{padding:24px}.product-card{max-height:calc(100vh - 48px)}}


/* V10 · tienda: ningún logo o foto puede desbordar su contenedor */
.store-logo{overflow:hidden;background:#fff;border:1px solid var(--line);}
.store-logo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;padding:3px;background:#fff;}
.product-img img,.product-photo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;background:#fff;}

/* V12 · Banner configurable y contenido seguro */
.hero-store{position:relative;overflow:hidden;isolation:isolate}.hero-store.has-banner{min-height:250px;padding:28px 16px}.hero-banner{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.hero-store.has-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#071321cc 0%,#07132188 48%,#07132125 100%);z-index:-1}.hero-store.has-banner .hero-content{max-width:85%;text-shadow:0 2px 8px #0008}.hero-store.has-banner .eyebrow,.hero-store.has-banner h1,.hero-store.has-banner p{position:relative}.hero-store.has-banner h1{font-size:32px}.hero-store.has-banner p{max-width:520px}@media(max-width:600px){.hero-store.has-banner{min-height:210px;padding:22px 16px}.hero-store.has-banner h1{font-size:27px}.hero-store.has-banner .hero-content{max-width:92%}}

/* V13 - categorias con imagen */
.category-chip{display:inline-flex;align-items:center;gap:7px}.category-chip img{width:24px;height:24px;object-fit:contain;border-radius:6px;background:#fff}


/* V14 - ficha y carrito más cómodos en celular */
.product-row{cursor:pointer}.product-row .add-btn{cursor:pointer}.cart-qty{display:flex;align-items:center;gap:8px;margin-top:7px}.cart-qty button{border:0;background:#eef2f7;width:28px;height:28px;border-radius:8px;font-size:17px}.cart-qty b{min-width:18px;text-align:center}.cart-item-side{display:flex;align-items:center;gap:8px}.remove-item{border:0;background:#f0f2f5;border-radius:8px;width:30px;height:30px;font-size:18px;cursor:pointer}

.wa-mark{display:inline-flex;align-items:center;justify-content:center;width:1.25em;height:1.25em;border-radius:50%;font-weight:800;line-height:1;background:#25D366;color:#fff;font-size:1em}.send-order .wa-mark{background:#fff;color:#25D366}.whatsapp-float{display:flex;align-items:center;justify-content:center}.cart-drawer label textarea{width:100%;resize:vertical;box-sizing:border-box}

/* V19 - logo de WhatsApp proporcionado por el usuario */
.wa-logo{width:24px;height:24px;object-fit:contain;display:block;flex:none}.send-order .wa-logo{width:25px;height:25px}.whatsapp-float{display:flex;align-items:center;justify-content:center}.whatsapp-float .wa-logo{width:42px;height:42px}.send-order{display:flex;align-items:center;justify-content:center;gap:9px}

/* V22 - WhatsApp oficial: solo se escala, no se modifica */
.whatsapp-float{width:56px;height:56px;right:16px;bottom:96px;background:#25D366;border-radius:50%;padding:7px;box-sizing:border-box}
.whatsapp-float .wa-logo{width:42px;height:42px;object-fit:contain;border-radius:50%;display:block}
.whatsapp-float:after{display:none}
.send-order .wa-logo{width:24px;height:24px;object-fit:contain}
@media(max-width:480px){.whatsapp-float{width:54px;height:54px;right:14px;bottom:92px;padding:0}.whatsapp-float .wa-logo{width:54px;height:54px}}

/* V24 - pequeña publicidad de GENESIS CLICK para escalar el servicio */
.genesis-promo{max-width:728px;margin:22px auto 105px;padding:12px 14px;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 18px #1420330a;}
.genesis-promo img{width:88px;height:44px;object-fit:contain;object-position:center;flex:none;}
.genesis-promo-copy{min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.2;}
.genesis-promo-copy strong{font-size:13px;}
.genesis-promo-copy span{font-size:11px;color:var(--muted);}
.genesis-promo-btn{margin-left:auto;flex:none;text-decoration:none;background:#087cf4;color:#fff;padding:9px 12px;border-radius:10px;font-size:11px;font-weight:900;white-space:nowrap;}
@media(max-width:600px){.genesis-promo{margin:18px 16px 105px;padding:11px 12px;gap:9px;}.genesis-promo img{width:70px;height:38px;}.genesis-promo-copy strong{font-size:12px;}.genesis-promo-copy span{font-size:10px;}.genesis-promo-btn{padding:8px 9px;font-size:10px;}}

@media (max-width:520px){.header-inner{min-height:64px;padding:8px 12px}.store-logo{width:44px;height:44px;border-radius:12px}.store-brand strong{font-size:16px}.store-brand small{font-size:11px}.header-actions{gap:6px}.whatsapp-header,.icon-btn{width:40px;height:40px;border-radius:12px}.whatsapp-header{padding:6px}}

/* V54 · Banner configurable */
.hero-store.has-banner{min-height:250px}
.hero-store.has-banner[data-height="bajo"]{min-height:190px}
.hero-store.has-banner[data-height="medio"]{min-height:250px}
.hero-store.has-banner[data-height="alto"]{min-height:340px}
.hero-banner{object-position:var(--banner-position,center center)}
.hero-store.has-banner .hero-content{color:var(--banner-text-color,#fff);text-align:var(--banner-text-align,center);margin-left:auto;margin-right:auto}
.hero-store.has-banner:after{background:linear-gradient(90deg,#071321b8 0%,#07132155 50%,#07132120 100%)}
.hero-banner-button{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;padding:10px 18px;border-radius:10px;text-decoration:none;background:var(--button,#19c967);color:#fff;font-weight:800;font-size:13px;box-shadow:0 4px 14px #0003}
@media(max-width:600px){.hero-store.has-banner[data-height="bajo"]{min-height:170px}.hero-store.has-banner[data-height="medio"]{min-height:220px}.hero-store.has-banner[data-height="alto"]{min-height:290px}.hero-banner-button{font-size:12px;padding:9px 15px}}

.hero-banner-button[hidden]{display:none!important}

/* V56 · Título del banner: una sola línea, pensado primero para celular */
.hero-store.has-banner h1{white-space:nowrap;overflow:hidden;text-overflow:clip;width:100%;max-width:100%;font-size:clamp(22px,5.8vw,32px);line-height:1.15;margin-left:0;margin-right:0}
@media(max-width:600px){.hero-store.has-banner .hero-content{max-width:96%;}.hero-store.has-banner h1{font-size:22px;letter-spacing:-.2px}}

/* V57 · Banner: contenido siempre visible por encima de imagen y overlay */
.hero-store.has-banner .hero-banner{z-index:0}
.hero-store.has-banner:after{z-index:1}
.hero-store.has-banner .hero-content{position:relative;z-index:2}
.hero-store.has-banner .hero-content h1,
.hero-store.has-banner .hero-content p,
.hero-store.has-banner .hero-content .hero-banner-button{position:relative;z-index:3}


/* V72 - tipografia suave y visual de ofertas en tienda */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&display=swap');
body{font-family:'Nunito Sans','Segoe UI',Arial,sans-serif;font-weight:400;}
.store-brand strong,.hero-store h1,.category-title,.product-row h3,.cart-drawer h2,.product-card h2{font-weight:600;}
.category-chip,.cart-drawer label,.send-order,.genesis-promo-btn,.hero-banner-button{font-weight:500;}
.product-row{align-items:stretch;}
.product-img{position:relative;min-height:84px;background:#f7f8fa;}
.product-img img{object-fit:contain;padding:4px;}
.product-info{min-width:0;}
.store-product-badges{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 5px;}
.store-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;color:#fff;font-size:10px;font-weight:600;line-height:1;}
.store-badge.featured{background:#e83f73;}
.store-badge.offer{background:#ef4b3f;}
.price-line{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
.price{font-weight:600;}
.old-price{color:#8d97a5;text-decoration:line-through;font-size:13px;font-weight:400;}
.store-stock{display:inline-block;margin-top:5px;padding:3px 7px;border-radius:999px;background:#eaf8f0;color:#199451;font-size:10px;font-weight:500;}
.product-old-price{display:block;margin-top:-8px;margin-bottom:8px;}
.store-modal-badges{margin:4px 0 8px;}
.product-card p{font-weight:400;}
@media(max-width:520px){.product-row{grid-template-columns:68px 1fr auto;gap:9px;padding:9px}.product-img{width:68px;height:68px;min-height:68px}.product-row h3{font-size:14px}.price{font-size:16px}.old-price{font-size:11px}}

/* V73 · Ficha de producto: visual premium y mobile-first */
body.modal-open{overflow:hidden;}
.product-modal{align-items:center;justify-content:center;padding:16px;}
.product-detail-modal{width:min(940px,100%);max-width:940px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:28px;padding:28px;border-radius:28px;max-height:min(760px,calc(100vh - 32px));overflow:auto;box-shadow:0 25px 70px #0005;}
.product-detail-media{min-width:0;display:flex;align-items:center;justify-content:center;}
.product-detail-media .product-photo{width:100%;height:min(560px,62vh);min-height:300px;border-radius:22px;background:#f7f7f9;border:1px solid #edf0f4;}
.product-detail-media .product-photo img{width:100%;height:100%;object-fit:contain;object-position:center;padding:14px;background:#fff;}
.product-detail-info{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:8px 6px 8px 0;}
.product-detail-info .eyebrow{color:#718096;opacity:1;margin-bottom:6px;}
.product-detail-info h2{font-size:clamp(25px,3vw,38px);line-height:1.12;font-weight:600;margin:4px 0 12px;}
.product-detail-info p{font-size:15px;color:var(--muted);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:180px;overflow:auto;margin:0 0 14px;}
.product-price-line{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:4px 0 10px;}
.product-price-line .product-price{font-size:32px;color:#102033;font-weight:600;margin:0;}
.product-price-line .product-old-price{font-size:17px;color:#8994a5;font-weight:400;}
.product-discount{display:none;align-items:center;padding:6px 10px;border-radius:999px;background:#fde8ef;color:#d93668;font-size:12px;font-weight:600;}
.product-stock-detail{font-size:15px;margin:4px 0 14px;font-weight:500;}
.product-stock-detail.available{color:#169653;}
.product-stock-detail.unavailable{color:#d64545;}
.qty-label{font-size:13px;font-weight:500;color:#536174;margin-bottom:7px;}
.product-detail-info .qty{justify-content:flex-start;gap:8px;margin:0 0 18px;}
.product-detail-info .qty button{width:46px;height:46px;}
.product-detail-info .qty span{min-width:46px;text-align:center;font-weight:600;}
.product-detail-info .send-order{font-weight:500;font-size:15px;padding:15px 18px;border-radius:14px;}
.product-detail-info .store-modal-badges{min-height:28px;}
@media(max-width:700px){
 .product-modal{padding:10px;align-items:flex-end;}
 .product-detail-modal{grid-template-columns:1fr;gap:0;width:100%;max-height:calc(100vh - 20px);padding:14px 14px 18px;border-radius:24px 24px 0 0;}
 .product-detail-media .product-photo{height:min(48vh,330px);min-height:190px;border-radius:18px;}
 .product-detail-media .product-photo img{padding:8px;}
 .product-detail-info{padding:14px 4px 0;}
 .product-detail-info h2{font-size:25px;margin-bottom:9px;}
 .product-detail-info p{font-size:14px;max-height:125px;margin-bottom:10px;}
 .product-price-line .product-price{font-size:27px;}
 .product-price-line .product-old-price{font-size:14px;}
 .product-detail-info .qty{margin-bottom:13px;}
 .product-detail-info .send-order{margin-top:0;}
 .product-detail-modal .drawer-close{right:12px;top:12px;z-index:5;width:38px;height:38px;}
}
@media(max-width:390px){
 .product-detail-media .product-photo{height:230px;min-height:180px;}
 .product-detail-info h2{font-size:22px;}
 .product-detail-info p{max-height:105px;font-size:13px;}
 .product-price-line .product-price{font-size:24px;}
}

/* V75 - tipografía delicada y sin exceso de negrita */
html, body, button, input, select, textarea { font-family:'Nunito Sans','Segoe UI',Arial,sans-serif !important; }
body { font-weight:400 !important; }
.store-brand strong,.hero-store h1,.category-title,.product-row h3,.cart-drawer h2,.product-card h2,.product-detail-info h2 { font-weight:500 !important; }
.category-chip,.cart-drawer label,.send-order,.genesis-promo-btn,.hero-banner-button,.store-badge,.store-stock,.qty-label { font-weight:400 !important; }
.price,.product-price-line .product-price,.product-detail-info .qty span { font-weight:500 !important; }
