:root{--blue:#1199d5;--blue2:#087cb1;--gold:#c8961d;--gold2:#e2b948;--dark:#1f2a32;--muted:#746b60;--bg:#fffaf0;--card:#fff;--green:#176b55;--red:#a73535;--line:#eadfca}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--dark)}a{color:inherit;text-decoration:none}.topbar{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:10;box-shadow:0 8px 22px #00000008}.wrap{max-width:1180px;margin:0 auto;padding:0 18px}.nav{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0}.brand{display:flex;align-items:center}.logo{height:66px;max-width:310px;object-fit:contain}.menu{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.menu a,.btn{border:0;border-radius:999px;padding:10px 14px;background:#fff;color:var(--dark);box-shadow:0 2px 8px #0001;font-weight:700;display:inline-block;cursor:pointer}.menu a:hover,.btn:hover{transform:translateY(-1px)}.menu a.active,.btn.primary{background:var(--blue);color:#fff}.btn.primary:hover{background:var(--blue2)}.btn.gold{background:var(--gold);color:#fff}.btn.big{padding:13px 18px;font-size:16px}.btn.danger{background:#8b1e1e;color:#fff;border-color:#8b1e1e}.cart-link span{background:var(--gold);color:#fff;border-radius:999px;padding:2px 7px;margin-left:4px}.lang{display:flex;gap:6px}.lang a{padding:7px 9px}.hero{padding:56px 0;background:linear-gradient(140deg,#fff 0%,#e8f7ff 50%,#fff7d7 100%)}.hero-commerce{position:relative;overflow:hidden}.hero-commerce:before{content:"";position:absolute;right:-120px;top:-120px;width:360px;height:360px;background:#ffe6a3;border-radius:999px;opacity:.45}.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:32px;align-items:center}.hero h1{font-size:52px;line-height:1.03;margin:0 0 14px}.hero p{font-size:19px;line-height:1.55;color:#344;max-width:690px}.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.11em;color:var(--green);font-weight:900;font-size:12px;margin-bottom:8px}.notice{border:1px solid #f0d28c;background:#fff8dd;border-radius:16px;padding:12px 14px;margin:16px 0;color:#5d4300}.hero-card{position:relative;background:#fff;border-radius:30px;box-shadow:0 22px 60px #00000018;padding:26px;border:1px solid #f0e8d5}.hero-card img{width:100%;border-radius:20px;background:#fff}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.mini-grid div{background:#f9fbfc;border:1px solid #eef2f4;border-radius:16px;padding:12px}.mini-grid strong{display:block}.mini-grid span{color:var(--muted);font-size:13px}.trust-strip{background:#176b55;color:#fff}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;padding:0}.trust-grid div{padding:17px 18px}.trust-grid strong{display:block}.trust-grid span{opacity:.86}.section-block{padding:34px 18px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}.section-head h2{font-size:32px;margin:0}.panel{background:#fff;border-radius:24px;box-shadow:0 12px 35px #0001;padding:24px;border:1px solid #f0ebdf}.panel.soft{background:#fff8e8;border-color:#efd6a3}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}.product-grid{align-items:stretch}.card{background:var(--card);border-radius:22px;padding:18px;box-shadow:0 8px 24px #00000012;border:1px solid #eee}.card h3{margin:0 0 8px}.product-card{display:flex;flex-direction:column;gap:8px}.product-card h3{min-height:46px}.product-img{width:100%;height:185px;object-fit:contain;background:#fff;border-radius:16px;border:1px solid #eee;padding:8px}.product-meta{display:flex;gap:6px;flex-wrap:wrap}.price{font-size:22px;font-weight:900;color:var(--green);margin:6px 0}.muted{color:var(--muted)}.badge{display:inline-block;background:#eef8ff;color:#0870a1;padding:5px 9px;border-radius:999px;font-weight:800;font-size:12px}.age{background:#fff0f0;color:#a30}.soldout{background:#f5eeee;color:#813232}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.category-tile{background:#fff;border:1px solid #eadfca;border-radius:20px;padding:18px;box-shadow:0 8px 22px #0000000c}.category-tile:hover{border-color:var(--gold);box-shadow:0 12px 30px #00000014}.category-tile strong{display:block;font-size:18px}.category-tile span{display:block;margin-top:8px;color:var(--muted)}.cta-panel{background:linear-gradient(135deg,var(--green),#124b3c);color:#fff;border-radius:28px;padding:28px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 14px 34px #0002}.cta-panel h2{margin:0 0 8px}.catalog-hero{background:linear-gradient(135deg,#e7f7ff,#fff8d7);padding:38px 0;border-bottom:1px solid #f0e7d2}.catalog-hero h1{font-size:42px;margin:0 0 8px}.catalog-hero p{font-size:18px;color:#42515a}.catalog-filter{margin-bottom:18px}.catalog-bar{margin:14px 0 18px;color:var(--muted)}.form{display:grid;gap:14px}.input,label select,label textarea,label input{width:100%;display:block}input,select,textarea{border:1px solid #ddd;border-radius:12px;padding:11px 12px;background:#fff;font:inherit}label span{font-weight:700;display:block;margin-bottom:5px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.three{display:grid;grid-template-columns:1fr 1fr 220px;gap:14px}.check{display:flex!important;gap:10px;align-items:center}.check input{width:auto}.actions{display:flex;gap:8px;flex-wrap:wrap}.alert{padding:12px 14px;border-radius:12px;margin:0 0 15px;background:#e8fff2;color:#14532d}.alert.error{background:#fff0f0;color:#991b1b}.page-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.contact-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}.page-card{font-size:17px;line-height:1.58}.page-card.accent{background:#fff8e8;border-color:#efd6a3}.page-card li{margin-bottom:8px}.footer{padding:35px 0;color:#667;background:#fff;border-top:1px solid #eee}.footer-grid{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:18px}.footer-links{display:flex;gap:12px;flex-wrap:wrap}.admin-layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh;background:#f6f7fb}.sidebar{background:#15202b;color:#fff;padding:22px}.sidebar img{width:100%;background:#fff;border-radius:12px;margin-bottom:18px}.sidebar a{display:block;padding:10px 12px;border-radius:10px;margin-bottom:6px}.sidebar a:hover,.sidebar a.active{background:#263749}.content{padding:26px}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 6px 18px #0001}.table th,.table td{padding:12px;border-bottom:1px solid #eee;text-align:left}.table th{background:#176b55;color:#fff}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}.stat{background:#fff;border-radius:18px;padding:18px;box-shadow:0 6px 18px #0001}.stat strong{display:block;font-size:28px;color:var(--blue)}.thumb{width:62px;height:62px;object-fit:contain;background:#fff;border:1px solid #eee;border-radius:10px;padding:4px}.product-detail{display:grid;grid-template-columns:minmax(260px,.8fr) 1.2fr;gap:28px;align-items:start}.product-detail-img{width:100%;max-height:520px;object-fit:contain;background:#fff;border:1px solid #eee;border-radius:20px;padding:14px}.product-edit-image{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.product-edit-image img{width:140px;height:110px;object-fit:contain;background:#fff;border:1px solid #eee;border-radius:14px;padding:6px}.cart-table input{padding:8px}.cart-summary{margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.checkout-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;align-items:start}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.filters input,.filters select{padding:10px;border:1px solid #ddd;border-radius:10px}@media(max-width:900px){.hero-grid,.two,.three,.admin-layout,.product-detail,.checkout-grid,.page-grid,.contact-grid{grid-template-columns:1fr}.hero h1{font-size:36px}.logo{height:52px}.menu{font-size:14px}.trust-grid{grid-template-columns:1fr}.cta-panel,.section-head{align-items:flex-start;flex-direction:column}.footer-grid{grid-template-columns:1fr}.product-img{height:150px}}

/* Bloque 5: opciones de entrega/pago */
.option-list{display:grid;gap:10px;margin:12px 0 18px}
.choice-card{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;border:1px solid #eadac3;border-radius:18px;background:#fffaf4;padding:13px 14px;cursor:pointer}
.choice-card.compact{grid-template-columns:auto 1fr}
.choice-card input{width:18px;height:18px}
.choice-card span{display:grid;gap:2px}
.choice-card em{font-style:normal;color:#7b6b5c;font-size:.92rem}
.choice-card b{white-space:nowrap;color:#8a3b13}
.order-total-box{margin-top:18px;padding:14px 16px;border-radius:18px;background:#fff6e9;display:grid;gap:4px;max-width:360px;margin-left:auto}
.order-total-box p{margin:0}

.payment-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:14px 0 20px}
.check{display:flex!important;align-items:center;gap:8px;margin:8px 0;font-weight:600}.check input{width:auto!important}
.choice-card.compact b.payment-badge{margin-left:auto;font-size:.82rem;border-radius:999px;padding:4px 8px;background:#fff3d6;color:#7a4a00}

/* Bloque 7: dashboard separado de configuración */
.admin-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.admin-page-head h1{margin:0 0 6px;font-size:34px}.admin-page-head p{margin:0}.dashboard-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;align-items:start}.section-head.compact{align-items:center;margin-bottom:12px}.section-head.compact h2{font-size:22px}.quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.quick-actions a{display:block;background:#fff;border:1px solid #eadfca;border-radius:18px;padding:14px;box-shadow:0 6px 16px #0000000c}.quick-actions a:hover{border-color:var(--gold);transform:translateY(-1px)}.quick-actions strong{display:block;margin-bottom:5px}.quick-actions span{display:block;color:var(--muted);font-size:13px;line-height:1.35}.compact-table th,.compact-table td{padding:9px 10px;font-size:14px}.stat{color:inherit}.stat:hover{box-shadow:0 10px 24px #0002;transform:translateY(-1px)}
@media(max-width:900px){.admin-page-head,.dashboard-grid{display:block}.admin-page-head .actions{margin-top:12px}.dashboard-grid .panel{margin-top:18px}}

/* Bloque 3: gestión operativa de pedidos */
.order-filters input{min-width:260px}.order-status-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.order-status-bar div{background:#f9fbfc;border:1px solid #eef2f4;border-radius:16px;padding:14px}.order-status-bar span{display:block;color:var(--muted);font-size:13px;margin-bottom:5px}.status-pill{display:inline-block;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.03em;background:#eef2f7;color:#334155}.status-pill.ok{background:#e8fff2;color:#176b55}.status-pill.warn{background:#fff6d8;color:#805500}.status-pill.info{background:#e8f5ff;color:#087cb1}.status-pill.done{background:#e7f8ef;color:#14532d}.status-pill.danger{background:#fff0f0;color:#991b1b}.status-pill.review{background:#f4ecff;color:#5b21b6}.timeline{display:grid;gap:12px}.timeline-item{border-left:4px solid var(--blue);padding:8px 0 8px 12px;background:#fbfdff;border-radius:0 12px 12px 0}.timeline-item span{display:block;color:var(--muted);font-size:13px;margin-top:3px}.timeline-item p{margin:8px 0 0}.print-body{background:#fff;color:#111}.print-sheet{max-width:980px;margin:24px auto;padding:28px;background:#fff}.print-head{display:flex;align-items:center;gap:18px;border-bottom:2px solid #111;padding-bottom:14px;margin-bottom:20px}.print-head img{width:170px;max-height:90px;object-fit:contain}.print-head h1{margin:0}.print-head p{margin:5px 0 0}.print-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.print-grid section{border:1px solid #ccc;border-radius:12px;padding:14px}.print-grid h2,.print-notes h2{margin-top:0}.print-table{box-shadow:none;border:1px solid #bbb}.print-total{box-shadow:none;border:1px solid #ddd}.print-notes{margin-top:18px;border:1px solid #ccc;border-radius:12px;padding:14px}.picking-customer{border:1px solid #ccc;border-radius:12px;padding:12px;margin-bottom:18px}.picking-table td,.picking-table th{font-size:17px}.check-cell{font-size:30px;text-align:center}.qty-cell{font-size:24px;font-weight:900}.signature-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-top:26px;padding-top:18px;border-top:1px solid #ccc}@media print{.print-sheet{margin:0;max-width:none}.btn,.actions,script{display:none!important}.table th{background:#eee!important;color:#111!important}.print-body{background:#fff}.print-head img{width:150px}.print-grid{grid-template-columns:1fr 1fr}.signature-grid{page-break-inside:avoid}}

/* Bloque 6 - informes/documentos */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:16px 0}.stat-card{background:#fff;border:1px solid #ead8c8;border-radius:16px;padding:16px;box-shadow:0 8px 24px rgba(92,52,24,.06)}.stat-card strong{display:block;font-size:1.55rem;color:#7b3f18}.stat-card span{color:#6c5b50}.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.actions-column{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.invoice-sheet{background:white;border:1px solid #ead8c8;border-radius:18px;padding:28px;max-width:980px;margin:auto}.invoice-header{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #ead8c8;padding-bottom:18px;margin-bottom:20px}.invoice-meta{text-align:right}.invoice-parties{margin:20px 0}.invoice-table{width:100%;border-collapse:collapse;margin-top:20px}.invoice-table th,.invoice-table td{border-bottom:1px solid #ead8c8;padding:10px;text-align:left}.invoice-totals{max-width:330px;margin:24px 0 0 auto}.invoice-totals p{display:flex;justify-content:space-between;border-bottom:1px solid #ead8c8;padding:8px 0}.invoice-totals .grand{font-size:1.3rem}.invoice-notes{margin-top:20px;border:1px solid #ead8c8;border-radius:12px;padding:14px;background:#fff8f2}@media print{.sidebar,.no-print,.alert{display:none!important}.admin-layout{display:block}.content{margin:0;padding:0}.invoice-sheet{border:none;box-shadow:none}.invoice-header{page-break-inside:avoid}}


/* Bloque 7 legal, cookies y +18 */
.legal-content{font-size:17px;line-height:1.68;max-width:920px}.legal-content h1{font-size:38px;margin:0 0 18px}.legal-content h2{font-size:24px;margin:26px 0 10px}.legal-content p{margin:0 0 13px}.legal-content ul{margin:0 0 16px 20px}.legal-content hr{border:0;border-top:1px solid var(--line);margin:28px 0 12px}.cookie-banner{position:fixed;left:18px;right:18px;bottom:18px;z-index:80;background:#fff;border:1px solid #eadfca;border-radius:22px;box-shadow:0 18px 55px #0003;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:980px;margin:0 auto}.cookie-banner p{margin:4px 0 0;color:var(--muted)}.age-alert{background:#fff8e1;color:#6a4200;border:1px solid #e6c36f}.sidebar a[href*='legal-pages']{background:#1f3445}.footer-links{max-width:560px}
@media(max-width:760px){.cookie-banner{display:block}.cookie-banner .actions{margin-top:12px}.legal-content h1{font-size:30px}}


/* Bloque 8 SEO catalogo, busqueda y filtros */
.advanced-catalog-filter{position:relative}.filter-switches{display:flex;flex-wrap:wrap;gap:14px;margin-top:12px}.filter-switches label{display:flex;align-items:center;gap:8px;background:#fff8ed;border:1px solid #eadfca;border-radius:999px;padding:9px 13px;font-weight:700}.category-chips{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.chip{display:inline-flex;align-items:center;border:1px solid #eadfca;border-radius:999px;padding:8px 12px;background:#fff;color:#52392a;text-decoration:none;font-weight:700}.chip.active,.chip:hover{background:#6f1d1b;color:#fff;border-color:#6f1d1b}.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:12px}.breadcrumbs a{color:inherit}.badge.gold,.btn.gold{background:#d6a84f;color:#21160a;border-color:#d6a84f}.small-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.table.compact th,.table.compact td{padding:8px 10px}.sidebar a[href*='seo']{background:#244331}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:0 0 18px}.stat-card{background:#fff;border:1px solid #eadfca;border-radius:18px;padding:16px;box-shadow:0 8px 24px #0000000d}.stat-card span{display:block;color:var(--muted);font-size:13px}.stat-card strong{font-size:30px}.two-col{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
@media(max-width:760px){.filter-switches{display:block}.filter-switches label{margin-bottom:8px}.category-chips{overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px}.chip{white-space:nowrap}}

/* Bloque 9: stock avanzado */
.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden}.table-wrap th,.table-wrap td{padding:11px 12px;border-bottom:1px solid #eee;text-align:left;vertical-align:top}.table-wrap th{background:#176b55;color:#fff}.grid.four{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.form-inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.form-inline input,.form-inline select{width:auto;min-width:180px}.btn.small{padding:7px 10px;font-size:13px}.btn.secondary{background:#f4f6f8;color:#1f2a32}.badge.success{background:#e7f8ef;color:#176b55}.badge.warning{background:#fff3cd;color:#7a4a00}.badge.danger{background:#fff0f0;color:#991b1b}

/* Bloque 10: proveedores y compras */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0}.muted{color:#6b7280}.grid.three{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.badge.success{background:#e7f8ef;color:#176b55}.badge.warning{background:#fff3cd;color:#7a4a00}.badge.danger{background:#fff0f0;color:#991b1b}.table-wrap small{color:#64748b}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}

/* Bloque 12: marketing, newsletter y popups */
.marketing-strip{background:#6f2c1f;color:#fff}.marketing-strip .marketing-banner{border-radius:0;margin:0 auto;max-width:1180px;background:transparent;color:#fff;box-shadow:none;padding:.55rem 1rem}.marketing-wrap{margin-top:1rem;margin-bottom:1rem}.marketing-banner{display:flex;gap:1rem;align-items:center;background:#fff7ed;border:1px solid #fed7aa;border-radius:20px;padding:1rem 1.2rem;box-shadow:0 12px 30px rgba(80,35,20,.08);margin:.75rem 0}.marketing-banner img{width:92px;height:92px;object-fit:cover;border-radius:16px}.marketing-banner h3{margin:.1rem 0 .25rem}.marketing-banner p{margin:.15rem 0 .6rem;color:#5f4b3f}.newsletter-box{display:grid;grid-template-columns:1.5fr 1fr;gap:1rem;align-items:center;background:#2f1a12;color:#fff;border-radius:24px;padding:1.4rem;margin-top:1.4rem;margin-bottom:1.4rem}.newsletter-box p{color:#ead6c8}.newsletter-box form{display:flex;gap:.6rem}.newsletter-box input{min-width:0}.ld-popup-open{overflow:hidden}.ld-popup-backdrop{position:fixed;inset:0;background:rgba(15,10,8,.62);z-index:9999;display:flex;align-items:center;justify-content:center;padding:1rem}.ld-popup-card{position:relative;background:#fff;border-radius:28px;max-width:560px;width:min(560px,96vw);box-shadow:0 30px 80px rgba(0,0,0,.35);overflow:hidden}.ld-popup-close{position:absolute;right:14px;top:12px;z-index:2;border:0;background:rgba(255,255,255,.9);font-size:2rem;line-height:1;border-radius:999px;width:42px;height:42px;cursor:pointer}.ld-popup-image{width:100%;max-height:240px;object-fit:cover;display:block}.ld-popup-content{padding:1.4rem}.ld-popup-content h2{margin-top:0}.ld-coupon{display:inline-block;border:2px dashed #b45309;background:#fff7ed;color:#7c2d12;font-weight:800;padding:.55rem .85rem;border-radius:14px;margin:.4rem 0 1rem;letter-spacing:.08em}.card-soft{border:1px solid #e7d6c8;border-radius:16px;padding:1rem;margin:1rem 0}.check.inline{display:inline-flex;margin-right:1rem;margin-bottom:.5rem}.actions .small,.btn.small{padding:.45rem .7rem;font-size:.9rem}.page-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem}@media(max-width:760px){.marketing-banner,.newsletter-box{grid-template-columns:1fr;display:block}.marketing-banner img{width:100%;height:160px;margin-bottom:.75rem}.newsletter-box form{flex-direction:column}.page-head{display:block}}

/* Bloque 13: home administrable, logo, WhatsApp y SMTP */
.whatsapp-float{position:fixed;right:18px;bottom:18px;z-index:9998;background:#25d366;color:#fff;text-decoration:none;font-weight:800;border-radius:999px;padding:.85rem 1rem;box-shadow:0 12px 35px rgba(0,0,0,.25)}
.whatsapp-float:hover{filter:brightness(.96)}
.card-soft{border:1px solid #e7d6c8;border-radius:16px;padding:1rem;margin:1rem 0;background:#fff}.check{display:flex;align-items:center;gap:.45rem}.check input{width:auto}.muted em, em.muted{font-size:.9rem;color:#7b6b62}.sidebar img{object-fit:contain;max-height:95px}.hero-card>img{object-fit:contain;background:#fff}.actions{display:flex;gap:.55rem;align-items:center}.btn.small{font-size:.9rem;padding:.45rem .65rem}

/* Bloque 14: WhatsApp Web automático */
.whatsapp-web-actions form{display:inline-block;margin:.15rem}.qr-box img{image-rendering:auto}.status-pill{display:inline-block;border-radius:999px;padding:.25rem .55rem;background:#eee;font-weight:700}.status-pill.ready{background:#d9f7e6;color:#166534}.status-pill.qr,.status-pill.authenticated{background:#fff3cd;color:#8a5a00}.status-pill.error,.status-pill.disconnected,.status-pill.auth_failure{background:#fde2e2;color:#8a1f1f}

/* Bloque 15 - navbar público compacto */
.ld-public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.ld-public-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.ld-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.ld-brand img {
    max-height: 42px;
    width: auto;
    display: block;
}

.ld-nav-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.ld-nav-main > a,
.ld-dropdown > button,
.ld-lang-switch a {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    color: #1f2937;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    cursor: pointer;
    white-space: nowrap;
}

.ld-nav-main > a:hover,
.ld-dropdown > button:hover,
.ld-lang-switch a:hover {
    transform: translateY(-1px);
}

.ld-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d4a63f;
    color: #fff;
    font-size: 12px;
}

.ld-dropdown {
    position: relative;
}

.ld-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
    border: 1px solid rgba(15, 23, 42, .08);
    display: none;
}

.ld-dropdown:hover .ld-dropdown-menu,
.ld-dropdown:focus-within .ld-dropdown-menu {
    display: grid;
    gap: 4px;
}

.ld-dropdown-menu a,
.ld-dropdown-menu button {
    width: 100%;
    display: block;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.ld-dropdown-menu a:hover,
.ld-dropdown-menu button:hover {
    background: #f3f4f6;
}

.ld-lang-switch {
    display: flex;
    gap: 4px;
    align-items: center;
}

.ld-lang-switch a {
    padding: 9px 12px;
}

.ld-lang-switch a.active {
    background: #0897d5;
    color: #fff;
}

@media (max-width: 760px) {
    .ld-public-nav {
        align-items: flex-start;
        gap: 10px;
        padding: 10px 12px;
    }

    .ld-brand img {
        max-height: 34px;
    }

    .ld-nav-main {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 8px;
    }

    .ld-nav-main > a,
    .ld-dropdown > button,
    .ld-lang-switch a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .ld-dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* Navbar compacto público - La Despensa */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu.compact-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.menu.compact-menu > a,
.menu.compact-menu .nav-dropdown > button,
.menu.compact-menu .mini-lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 15px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    cursor: pointer;
    white-space: nowrap;
}

.menu.compact-menu .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d4a63f;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.menu.compact-menu .nav-dropdown {
    position: relative;
}

.menu.compact-menu .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    display: none;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.menu.compact-menu .nav-dropdown:hover .nav-dropdown-menu,
.menu.compact-menu .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
    gap: 4px;
}

.menu.compact-menu .nav-dropdown-menu a,
.menu.compact-menu .nav-dropdown-menu button {
    width: 100%;
    display: block;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.menu.compact-menu .nav-dropdown-menu a:hover,
.menu.compact-menu .nav-dropdown-menu button:hover {
    background: #f3f4f6;
}

.menu.compact-menu .mini-lang {
    display: inline-flex;
    gap: 4px;
}

.menu.compact-menu .mini-lang a {
    min-height: 38px;
    padding: 9px 12px;
}

.menu.compact-menu .mini-lang a.active {
    background: #0897d5;
    color: #fff;
}

@media (max-width: 820px) {
    .topbar {
        align-items: flex-start;
    }

    .menu.compact-menu {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
    }

    .menu.compact-menu > a,
    .menu.compact-menu .nav-dropdown > button,
    .menu.compact-menu .mini-lang a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .menu.compact-menu .nav-dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* Bloque 16 - contacto administrable */
.contact-extra-text {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    line-height: 1.65;
}
.contact-map-wrap {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .10);
}
.soft-panel {
    background: rgba(15, 23, 42, .03);
}

/* Bloque 17 - colaboradores admin compacto whatsapp flotante */
.compact-admin-layout .content{padding:22px 26px}.compact-sidebar{width:248px;padding:16px 14px;overflow-y:auto}.compact-sidebar img{max-height:58px;margin:0 auto 12px;display:block}.admin-logo-link{background:transparent!important;padding:0!important;box-shadow:none!important}.admin-dashboard-link{display:block;background:#6f1d1b!important;color:#fff!important;border-radius:14px;padding:11px 12px!important;margin:8px 0 12px;font-weight:900}.admin-menu-groups{display:grid;gap:8px}.admin-menu-group{border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.05);overflow:hidden}.admin-menu-group summary{cursor:pointer;list-style:none;padding:10px 12px;color:#fff;font-weight:850;font-size:14px}.admin-menu-group summary::-webkit-details-marker{display:none}.admin-menu-group summary:after{content:'▾';float:right;opacity:.8}.admin-menu-group[open] summary:after{content:'▴'}.admin-menu-group-links{display:grid;gap:2px;padding:0 8px 8px}.compact-sidebar .admin-menu-group-links a{font-size:13px;padding:8px 9px!important;margin:0!important;border-radius:10px;background:rgba(255,255,255,.08)!important;color:#f8fafc!important}.compact-sidebar .admin-menu-group-links a:hover{background:rgba(255,255,255,.18)!important}.admin-store-link{display:block;margin-top:12px!important;background:#1f3445!important}.admin-logout{width:100%;margin-top:8px}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-top:12px}.permission-card{display:flex;gap:10px;align-items:flex-start;border:1px solid #eadfca;background:#fff;border-radius:16px;padding:13px}.permission-card input{width:auto;margin-top:3px}.permission-card strong{display:block;color:#2f1a12}.permission-card span{display:block;color:#6b5b50;font-size:13px;line-height:1.35}.permission-chip{display:inline-block;margin:2px;padding:5px 8px;border-radius:999px;background:#f6eadb;color:#6f1d1b;font-size:12px;font-weight:800}.btn.danger{background:#991b1b;color:#fff}.whatsapp-float.whatsapp-float-admin{right:18px;bottom:18px;display:inline-flex;align-items:center;gap:8px;background:#25d366;color:#fff;border-radius:999px;padding:12px 16px;font-weight:900;text-decoration:none;box-shadow:0 14px 38px rgba(0,0,0,.28)}.whatsapp-float-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:rgba(255,255,255,.22);font-size:16px}.whatsapp-float-text{line-height:1}.sidebar.compact-sidebar a{line-height:1.15}@media(max-width:900px){.compact-sidebar{width:100%;position:relative}.admin-layout.compact-admin-layout{display:block}.compact-admin-layout .content{padding:16px}.admin-menu-groups{grid-template-columns:1fr}.whatsapp-float-text{display:none}.whatsapp-float.whatsapp-float-admin{padding:13px}.whatsapp-float-icon{background:transparent}}

/* Bloque 20 - recuperar contraseña y password tools */
.password-field {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.password-field input {
    flex: 1;
}
.password-toggle {
    border: 0;
    border-radius: 12px;
    padding: 0 12px;
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 800;
    cursor: pointer;
}
.password-toggle:hover { background: #e5e7eb; }

/* Bloque 23 - puntos de venta / revendedores públicos */
.reseller-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.reseller-location-card { display: flex; flex-direction: column; gap: 8px; }
.reseller-location-head h2 { margin-bottom: 4px; }
.reseller-location-head span { color: #64748b; font-weight: 700; }
.actions-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn.small { padding: 6px 10px; font-size: 12px; }
.btn.danger { background: #fee2e2; color: #991b1b; }
.status.pending { color: #92400e; font-weight: 800; }
.status.approved { color: #166534; font-weight: 800; }
.status.rejected { color: #991b1b; font-weight: 800; }
.compact-actions { align-self: end; display: flex; gap: 8px; }

/* Productos admin - acciones masivas */
.bulk-products-actions-panel .btn,
.card .btn {
    margin-right: 4px;
}

/* Productos admin - herramientas compactas */
.products-tools-compact {
    margin: 14px 0 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.products-tools-left,
.products-tools-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.products-tools-left {
    flex: 1 1 620px;
}

.products-tools-right {
    flex: 0 1 auto;
    justify-content: flex-end;
    padding-left: 16px;
    border-left: 1px solid rgba(15, 23, 42, .08);
}

.products-tools-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.products-tools-compact .muted {
    color: #64748b;
    font-size: 13px;
}

.products-tools-compact .btn.small {
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.products-tools-compact .inline-check {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.products-tools-compact .inline-check input {
    margin: 0 !important;
}

@media (max-width: 980px) {
    .products-tools-right {
        width: 100%;
        justify-content: flex-start;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(15, 23, 42, .08);
        padding-top: 12px;
    }
}


/* admin products search/actions alignment */
.admin-products-search-card {
    padding: 20px 24px !important;
}

.admin-products-toolbar-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.admin-products-toolbar-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 520px;
    min-width: 320px;
}

.admin-products-toolbar-left h2,
.admin-products-toolbar-left h3,
.admin-products-toolbar-left h4,
.admin-products-toolbar-left strong,
.admin-products-toolbar-left label {
    margin: 0 !important;
}

.admin-products-toolbar-left form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 !important;
}

.admin-products-toolbar-left form input[type="text"],
.admin-products-toolbar-left form input[type="search"] {
    min-width: 280px;
    max-width: 420px;
}

.admin-products-toolbar-actions {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
    flex: 0 0 auto;
    min-height: 42px;
}

.admin-products-toolbar-actions form {
    margin: 0 !important;
}

.admin-products-toolbar-actions .btn,
.admin-products-toolbar-actions button,
.admin-products-toolbar-actions a {
    margin: 0 !important;
    white-space: nowrap;
}

.admin-products-duplicates-note {
    margin: 12px 0 0 0 !important;
    color: #64748b;
}

@media (max-width: 900px) {
    .admin-products-toolbar-top {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-products-toolbar-actions {
        justify-content: flex-start;
        margin-left: 0;
    }
}


/* Productos admin - alinear botones superiores */
.products-top-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.products-top-toolbar .products-top-search {
    flex: 1 1 540px;
    min-width: 320px;
}

.products-top-toolbar .products-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.products-top-toolbar .products-top-actions form,
.products-top-toolbar .products-top-actions .inline-form,
.products-top-toolbar .products-top-actions a,
.products-top-toolbar .products-top-actions button {
    margin: 0 !important;
}

@media (max-width: 900px) {
    .products-top-toolbar {
        align-items: stretch;
    }

    .products-top-toolbar .products-top-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Force align toolbar on admin products */
.products-search-toolbar-force {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.products-search-toolbar-force-left {
    flex: 1 1 560px !important;
    min-width: 320px !important;
}

.products-search-toolbar-force-left form {
    display: flex !important;
    align-items: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    width: 100% !important;
}

.products-search-toolbar-force-left input[type="text"],
.products-search-toolbar-force-left input:not([type]) {
    min-width: 280px !important;
}

.products-search-toolbar-force-right {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-left: auto !important;
}

.products-search-toolbar-force-right form,
.products-search-toolbar-force-right a,
.products-search-toolbar-force-right button {
    margin: 0 !important;
}

@media (max-width: 900px) {
    .products-search-toolbar-force-right {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
    }
}

/* Productos admin - disposición limpia de botones */
.products-tools {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
}

.products-tools-left,
.products-tools-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.products-tools-left .muted {
    margin-right: 8px !important;
}

.products-tools .btn.small,
.products-search-actions .btn,
.products-header-actions .btn {
    min-height: 36px !important;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
}

.products-tools-right {
    padding-left: 18px !important;
    border-left: 1px solid rgba(15, 23, 42, .08) !important;
}

/* Tabla productos */
.table th:last-child,
.table td:last-child {
    width: 290px !important;
    min-width: 290px !important;
}

.product-row-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.product-row-actions form {
    display: inline-flex !important;
    margin: 0 !important;
}

.product-row-actions .btn {
    min-height: 36px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.product-row-actions .btn.danger {
    background: #ffe3e3 !important;
    color: #9b1c1c !important;
}

/* La vista previa queda como botón secundario más compacto */
.product-row-actions form button:not(.danger) {
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .07) !important;
}

/* En pantallas angostas, sí permitimos salto */
@media (max-width: 1180px) {
    .products-tools {
        grid-template-columns: 1fr !important;
    }

    .products-tools-right {
        border-left: 0 !important;
        padding-left: 0 !important;
        border-top: 1px solid rgba(15, 23, 42, .08) !important;
        padding-top: 12px !important;
        justify-content: flex-start !important;
    }

    .table th:last-child,
    .table td:last-child {
        width: 240px !important;
        min-width: 240px !important;
    }

    .product-row-actions {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 760px) {
    .products-tools-left,
    .products-tools-right,
    .product-row-actions {
        gap: 6px !important;
    }

    .product-row-actions .btn {
        padding: 7px 11px !important;
        font-size: 12px !important;
    }
}

/* FINAL - Admin productos: botones compactos y alineados */
.table th:last-child,
.table td:last-child {
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
}

.table td:last-child {
    vertical-align: middle !important;
}

.product-row-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.product-row-actions form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-row-actions a.btn,
.product-row-actions button.btn,
.product-row-actions .btn {
    min-height: 30px !important;
    height: 30px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .06) !important;
    margin: 0 !important;
}

.product-row-actions button[type="submit"],
.product-row-actions a {
    white-space: nowrap !important;
}

.product-row-actions .btn.danger,
.product-row-actions button.btn.danger {
    background: #ffe3e3 !important;
    color: #9b1c1c !important;
}

.product-row-actions form button:not(.danger) {
    background: #ffffff !important;
    color: #111827 !important;
}

/* Convertir "Vista previa" en botón más corto visualmente */
.product-row-actions form button:not(.danger) {
    max-width: 78px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Reducir altura de filas grandes causadas por botones */
.table td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* En pantallas medianas, permitir que salten pero sin agrandarse */
@media (max-width: 1180px) {
    .table th:last-child,
    .table td:last-child {
        width: 210px !important;
        min-width: 210px !important;
        max-width: 210px !important;
    }

    .product-row-actions {
        gap: 5px !important;
    }

    .product-row-actions a.btn,
    .product-row-actions button.btn,
    .product-row-actions .btn {
        font-size: 11px !important;
        padding: 6px 9px !important;
    }
}

/* FINAL REAL - Admin productos: acciones en una sola fila */
.table th.product-actions-cell,
.table td.product-actions-cell,
.table th:last-child,
.table td:last-child {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    vertical-align: middle !important;
}

.product-actions-cell {
    white-space: nowrap !important;
}

.product-actions-inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.product-actions-inline form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.product-action-btn {
    appearance: none !important;
    border: 0 !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .08) !important;
    margin: 0 !important;
}

.product-action-edit,
.product-action-preview {
    background: #ffffff !important;
    color: #111827 !important;
}

.product-action-delete {
    background: #ffe3e3 !important;
    color: #9b1c1c !important;
}

.product-action-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 1180px) {
    .table th.product-actions-cell,
    .table td.product-actions-cell,
    .table th:last-child,
    .table td:last-child {
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
    }

    .product-action-btn {
        padding: 6px 9px !important;
        font-size: 11px !important;
    }
}

/* FORCE FIX - productos admin acciones */
.product-actions-force-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.product-actions-force-row form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.product-actions-force-row a,
.product-actions-force-row button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 6px 11px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    border: 0 !important;
    margin: 0 !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .08) !important;
}

.product-actions-force-row a,
.product-actions-force-row button:not(.danger) {
    background: #fff !important;
    color: #111827 !important;
}

.product-actions-force-row button.danger,
.product-actions-force-row .danger {
    background: #ffe3e3 !important;
    color: #9b1c1c !important;
}

table td:last-child {
    min-width: 260px !important;
    width: 260px !important;
}

/* Bloque 35 - precios globales y aumento masivo */
.products-pricing-global-panel-v35 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 14px;
    margin: 14px 0 18px;
}
.products-pricing-global-panel-v35 .pricing-panel-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.products-pricing-global-panel-v35 strong { font-size: 15px; }
.products-pricing-global-panel-v35 p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.products-pricing-global-panel-v35 form,
.products-pricing-global-panel-v35 .pricing-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}
.products-pricing-global-panel-v35 input,
.products-pricing-global-panel-v35 select {
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 7px 12px;
}
.products-pricing-global-panel-v35 input[type="number"] { width: 110px; }
.products-pricing-global-panel-v35 .btn.small {
    min-height: 34px !important;
    height: 34px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}
@media (max-width: 1100px) {
    .products-pricing-global-panel-v35 { grid-template-columns: 1fr; }
}

/* Admin productos - precios globales y aumento masivo lado a lado */
.products-price-tools,
.prices-global-tools,
.global-price-tools,
.price-bulk-tools {
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.4fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

.products-price-tools > *,
.prices-global-tools > *,
.global-price-tools > *,
.price-bulk-tools > * {
    margin-top: 0 !important;
}

.products-price-side-by-side {
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.4fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
    margin: 16px 0 !important;
}

.products-price-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.products-price-card h3 {
    margin-top: 0;
}

.products-price-card .inline-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.products-stock-print-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.products-stock-print-actions a {
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    background: #fff;
    color: #111827;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}

@media (max-width: 1000px) {
    .products-price-tools,
    .prices-global-tools,
    .global-price-tools,
    .price-bulk-tools,
    .products-price-side-by-side {
        grid-template-columns: 1fr !important;
    }
}

/* RESTORE VISUAL - Admin productos */
.products-visual-price-grid {
    display: grid !important;
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.3fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
    margin: 14px 0 16px !important;
}

.products-visual-card {
    background: #fff !important;
    border-radius: 18px !important;
    padding: 16px 18px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06) !important;
}

.products-visual-card h3,
.products-visual-card h4 {
    margin-top: 0 !important;
}

.products-visual-card form,
.products-visual-card .products-stock-print-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.products-stock-print-actions {
    margin-top: 10px !important;
}

.products-stock-print-actions strong {
    margin-right: 4px !important;
}

.products-stock-print-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 7px 13px !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #111827 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08) !important;
}

/* Acciones por producto: fila real compacta */
.product-actions-force-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.product-actions-force-row form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

.product-actions-force-row a,
.product-actions-force-row button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 6px 11px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    border: 0 !important;
    margin: 0 !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .08) !important;
}

.product-actions-force-row a,
.product-actions-force-row button:not(.danger) {
    background: #fff !important;
    color: #111827 !important;
}

.product-actions-force-row button.danger,
.product-actions-force-row .danger {
    background: #ffe3e3 !important;
    color: #9b1c1c !important;
}

table td:last-child {
    min-width: 250px !important;
    width: 250px !important;
}

@media (max-width: 1100px) {
    .products-visual-price-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Bloque 46 - preventistas / consignacion */
.consignment-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.consignment-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:end; }
.consignment-mini-account { background:#f8fafc; border:1px solid #e5e7eb; border-radius:18px; padding:14px; margin:12px 0; }

/* Admin sidebar compact restore */
aside,
.sidebar,
body > nav:first-child {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    flex: 0 0 250px !important;
}

.ld-admin-sidebar-shell {
    padding: 14px 12px 18px !important;
    gap: 9px !important;
}

.ld-admin-logo-box {
    min-height: 68px !important;
    padding: 12px 10px !important;
    border-radius: 15px !important;
}

.ld-admin-logo-box img {
    max-width: 108px !important;
    max-height: 42px !important;
}

.ld-admin-dashboard {
    padding: 11px 13px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 760 !important;
}

.ld-admin-menu-group {
    border-radius: 12px !important;
}

.ld-admin-menu-group summary {
    padding: 11px 13px !important;
    font-size: 13px !important;
    font-weight: 720 !important;
}

.ld-admin-menu-links {
    gap: 6px !important;
    padding: 0 8px 9px !important;
}

.ld-admin-menu-links a {
    padding: 8px 11px !important;
    border-radius: 9px !important;
    font-size: 12.5px !important;
    font-weight: 620 !important;
}

.ld-admin-shop {
    padding: 10px 13px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.ld-admin-logout button {
    padding: 11px 13px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* ===== Sidebar admin: separación entre botones ===== */
.ld-admin-sidebar-shell{
    gap: 12px !important;
}

.ld-admin-menu-group{
    margin-bottom: 10px !important;
}

.ld-admin-menu-group + .ld-admin-menu-group{
    margin-top: 2px !important;
}

.ld-admin-menu-group summary{
    margin: 0 !important;
}

.ld-admin-menu-links{
    padding-top: 8px !important;
    padding-bottom: 10px !important;
    gap: 8px !important;
}

.ld-admin-menu-links a{
    margin: 0 !important;
}

.ld-admin-shop{
    margin-top: 8px !important;
}

.ld-admin-logout{
    margin-top: 14px !important;
}

.ld-admin-logout button{
    margin-top: 0 !important;
}

/* === Ajuste global de separación de botones / tabs en admin y preventista === */

/* Cabeceras con acciones */
.products-header,
.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Contenedores típicos de botones */
.products-header > div,
.products-header-actions,
.consignment-actions,
.card .filters,
.card .actions-row,
.card .tabs-row,
.card .top-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* Cuando hay formularios inline, que no queden pegados */
.products-header > div form,
.products-header-actions form,
.consignment-actions form,
.card .filters form,
.card .actions-row form,
.card .tabs-row form,
.card .top-actions form {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Tabs / botones seguidos dentro de cards o paneles */
.card > a.btn,
.card > button.btn,
.card > form,
.panel > a.btn,
.panel > button.btn,
.panel > form {
    margin-right: 10px;
    margin-bottom: 10px;
}

.card > a.btn:last-child,
.card > button.btn:last-child,
.panel > a.btn:last-child,
.panel > button.btn:last-child {
    margin-right: 0;
}

/* Filas de tabs tipo: Negocios / stands / Movimientos / Deudas */
.admin-tabs,
.subnav-tabs,
.preventista-tabs,
.consignment-tabs {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 10px 0 16px !important;
}

.admin-tabs .btn,
.subnav-tabs .btn,
.preventista-tabs .btn,
.consignment-tabs .btn,
.admin-tabs a,
.subnav-tabs a,
.preventista-tabs a,
.consignment-tabs a {
    margin: 0 !important;
}

/* Evitar que los botones se amontonen visualmente */
.btn {
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .products-header,
    .section-head {
        gap: 12px;
    }

    .products-header > div,
    .products-header-actions,
    .consignment-actions,
    .card .filters,
    .card .actions-row,
    .card .tabs-row,
    .card .top-actions,
    .admin-tabs,
    .subnav-tabs,
    .preventista-tabs,
    .consignment-tabs {
        gap: 10px !important;
    }

    .card > a.btn,
    .card > button.btn,
    .card > form,
    .panel > a.btn,
    .panel > button.btn,
    .panel > form {
        margin-right: 8px;
        margin-bottom: 8px;
    }
}

/* === Bloque 47C - UI consistente Preventistas / Consignación === */
.consignment-page { display: grid; gap: 18px; }
.consignment-header { margin-bottom: 0 !important; }
.consignment-header h1 { margin-bottom: 6px; }
.consignment-header .muted { max-width: 760px; line-height: 1.45; }
.consignment-tabs { display: flex !important; align-items: center !important; gap: 12px !important; flex-wrap: wrap !important; margin: 0 0 2px !important; }
.consignment-tabs a { display: inline-flex !important; align-items: center; justify-content: center; min-height: 38px; padding: 9px 15px; border-radius: 999px; background: #fff; color: #111827; font-weight: 850; text-decoration: none; box-shadow: 0 8px 20px rgba(15, 23, 42, .07); }
.consignment-tabs a.active { background: #0897d5; color: #fff; }
.consignment-filter-card, .consignment-table-card { padding: 18px; }
.consignment-filter-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.consignment-filter-form label { min-width: 220px; }
.consignment-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; }
.consignment-kpi-grid .stat span { display: block; color: #64748b; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.consignment-kpi-grid .stat strong { display: block; color: var(--blue); font-size: 28px; }
.action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #eef8ff; color: #0870a1; font-size: 12px; font-weight: 900; }
.pagination-wrap { margin-top: 4px; }
.preventista-portal-page .products-header-actions .btn { white-space: nowrap; }
@media (max-width: 800px) {
    .consignment-filter-form label { width: 100%; min-width: 0; }
    .consignment-tabs { gap: 8px !important; }
    .consignment-tabs a { min-height: 34px; padding: 8px 12px; font-size: 13px; }
}

/* === Bloque 48B - UI limpia Contabilidad de consignación === */
.ld-consign-page {
    display: grid;
    gap: 18px;
}

.ld-consign-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.ld-consign-titlecopy {
    min-width: 0;
    max-width: 920px;
}

.ld-consign-titlebar h1 {
    margin: 4px 0 6px;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: .01em;
}

.ld-consign-titlebar p {
    margin: 0;
    color: #64748b;
    max-width: 820px;
    line-height: 1.45;
}

.ld-section-kicker {
    display: inline-block;
    color: #0f6249;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ld-title-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.ld-consign-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ld-consign-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
}

.ld-consign-nav a.active {
    background: #0897d5;
    color: #fff;
}

.ld-consign-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
}

.ld-kpi-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.ld-kpi-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 8px;
}

.ld-kpi-card strong {
    display: block;
    color: #0897d5;
    font-size: 28px;
    line-height: 1;
}

.ld-filter-card,
.ld-table-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.ld-filter-card h2 {
    margin: 0 0 14px;
    font-size: 19px;
}

.ld-accounting-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 14px;
    align-items: end;
}

.ld-accounting-filter label span {
    display: block;
    font-weight: 850;
    margin-bottom: 6px;
}

.ld-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ld-table-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    margin-bottom: 12px;
}

.ld-table-head h2 {
    margin: 0;
}

.ld-table-head p {
    margin: 4px 0 0;
    color: #64748b;
}

.ld-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.ld-accounting-table {
    min-width: 980px;
}

.ld-accounting-table td,
.ld-accounting-table th {
    white-space: nowrap;
}

.ld-accounting-table td:last-child,
.ld-accounting-table th:last-child {
    white-space: normal;
    min-width: 220px;
}

.ld-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef8ff;
    color: #0870a1;
    font-size: 12px;
    font-weight: 900;
}

.ld-status-pill.open,
.ld-status-pill.partial {
    background: #fff3d6;
    color: #9a5a00;
}

.ld-status-pill.comodato {
    background: #eef2ff;
    color: #3949ab;
}

.ld-status-pill.paid {
    background: #e8f8ed;
    color: #166534;
}

.ld-money-danger {
    color: #b91c1c;
    font-weight: 900;
}

.ld-empty-row {
    text-align: center;
    color: #64748b;
    padding: 22px !important;
}

@media (max-width: 1280px) {
    .ld-accounting-filter {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .ld-consign-kpis {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 720px) {
    .ld-accounting-filter,
    .ld-consign-kpis {
        grid-template-columns: 1fr;
    }

    .ld-title-actions,
    .ld-filter-actions {
        justify-content: flex-start;
    }
}

/* Bloque 49 - stock unificado */
.ld-stock-unified-page {
    display: grid;
    gap: 18px;
}

.ld-stock-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(220px, .8fr) auto;
    gap: 14px;
    align-items: end;
}

.ld-stock-filter label span {
    display: block;
    font-weight: 850;
    margin-bottom: 6px;
}

.ld-stock-table {
    min-width: 1100px;
}

.ld-stock-table td,
.ld-stock-table th {
    white-space: nowrap;
}

.ld-stock-table td:nth-child(7),
.ld-stock-table th:nth-child(7) {
    min-width: 260px;
    white-space: normal;
}

.ld-business-chip {
    display: inline-flex;
    align-items: center;
    margin: 2px 4px 2px 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef8ff;
    color: #0870a1;
    font-size: 12px;
    font-weight: 800;
}

.ld-status-pill.con_consignacion {
    background: #e8f8ed;
    color: #166534;
}

.ld-status-pill.solo_en_consignacion {
    background: #fff3d6;
    color: #9a5a00;
}

.ld-status-pill.sin_stock_total {
    background: #ffe3e3;
    color: #9b1c1c;
}

@media (max-width: 850px) {
    .ld-stock-filter {
        grid-template-columns: 1fr;
    }
}

/* Bloque 50 - auditoría consignación */
.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.audit-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.audit-summary-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.audit-summary-item span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
}

.audit-summary-item strong {
    display: block;
    color: #111827;
    font-size: 18px;
}

@media (max-width: 900px) {
    .audit-grid {
        grid-template-columns: 1fr;
    }
}

/* Bloque 53 - cierre visual operativo */
.ld-readiness-panel {
    margin: 16px 0 22px;
}

.ld-readiness-alert {
    display: grid;
    gap: 4px;
    border: 1px solid #f6c768;
    background: #fff7df;
    color: #7a4a00;
    border-radius: 16px;
    padding: 13px 15px;
    margin: 10px 0 12px;
}

.ld-readiness-alert.ok {
    border-color: #bfe7ca;
    background: #edf9f0;
    color: #176b55;
}

.ld-readiness-alert strong {
    font-size: 15px;
}

.ld-readiness-alert span {
    font-size: 13px;
}

.ld-readiness-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.ld-readiness-item {
    display: grid;
    gap: 4px;
    border: 1px solid #eadfca;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.ld-readiness-item.warn strong {
    color: #8a5a00;
}

.ld-readiness-item span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.ld-readiness-okline {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.ld-readiness-okline span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #edf9f0;
    color: #176b55;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 850;
}

.compact-sidebar .admin-menu-group summary {
    user-select: none;
}

.compact-sidebar .admin-menu-group-links a:hover,
.compact-sidebar .admin-dashboard-link:hover,
.compact-sidebar .admin-store-link:hover {
    filter: brightness(.98);
}


/* === Bloque 61 - ajuste UI pública mobile === */
.public-menu-toggle {
    display: none;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

.checkout-summary-products,
.checkout-summary-line,
.checkout-total-row,
.product-card,
.panel,
.card {
    min-width: 0;
}

@media (max-width: 760px) {
    body {
        background: #fffaf0;
    }

    .wrap {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .topbar {
        z-index: 200;
    }

    .nav {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px 12px;
        align-items: center;
        padding: 8px 0;
    }

    .brand {
        min-width: 0;
    }

    .logo {
        height: 46px;
        max-width: min(210px, 62vw);
    }

    .public-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 42px;
        padding: 8px 12px;
        border: 1px solid rgba(15, 23, 42, .10);
        border-radius: 999px;
        background: #ffffff;
        color: #1f2937;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
        cursor: pointer;
    }

    .public-menu-toggle span {
        display: block;
        width: 4px;
        height: 4px;
        border-radius: 999px;
        background: #1f2937;
    }

    .public-menu-toggle strong {
        margin-left: 3px;
        font-size: 13px;
        line-height: 1;
    }

    .menu.compact-menu {
        grid-column: 1 / -1;
        width: 100%;
        display: none;
        overflow: visible;
        padding: 8px 0 2px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    body.public-menu-open .menu.compact-menu {
        display: flex;
    }

    .menu.compact-menu > a,
    .menu.compact-menu .nav-dropdown > button,
    .menu.compact-menu .mini-lang a {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        padding: 10px 13px;
        font-size: 14px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .07);
    }

    .menu.compact-menu .nav-dropdown {
        width: 100%;
    }

    .menu.compact-menu .nav-dropdown-menu {
        position: static;
        display: grid;
        min-width: 0;
        width: 100%;
        margin-top: 7px;
        padding: 7px;
        border-radius: 14px;
        box-shadow: none;
        background: rgba(255, 255, 255, .72);
    }

    .menu.compact-menu .mini-lang {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero,
    .catalog-hero {
        padding: 28px 0;
    }

    .hero h1,
    .catalog-hero h1 {
        font-size: clamp(29px, 9vw, 38px);
        line-height: 1.05;
    }

    .hero p,
    .catalog-hero p {
        font-size: 16px;
        line-height: 1.45;
    }

    .hero-card,
    .panel,
    .card {
        border-radius: 18px;
    }

    .hero-card,
    .panel {
        padding: 18px;
    }

    .section-block {
        padding: 24px 14px;
    }

    .section-head h2 {
        font-size: 25px;
    }

    .catalog-filter.panel {
        padding: 16px;
    }

    .filter-switches {
        display: grid;
        gap: 8px;
    }

    .filter-switches label {
        width: 100%;
        margin: 0;
        border-radius: 14px;
        justify-content: flex-start;
    }

    .category-chips {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 2px 10px;
        margin: 14px -2px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .catalog-bar {
        font-size: 14px;
        margin: 10px 0 14px;
    }

    .grid.product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        padding: 12px;
        gap: 7px;
        border-radius: 18px;
    }

    .product-card h3 {
        min-height: 0;
        margin-bottom: 4px;
        font-size: 15px;
        line-height: 1.2;
    }

    .product-card .muted {
        font-size: 12px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .product-img {
        height: 124px;
        border-radius: 14px;
        padding: 6px;
    }

    .product-meta {
        gap: 4px;
    }

    .badge {
        padding: 4px 7px;
        font-size: 11px;
    }

    .price {
        font-size: 18px;
        margin: 2px 0 5px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .actions .btn,
    .actions form,
    .actions button {
        width: 100%;
        text-align: center;
    }

    .btn {
        min-height: 42px;
        padding: 10px 13px;
        text-align: center;
    }

    .product-detail {
        gap: 18px;
    }

    .product-detail-img {
        max-height: 330px;
        padding: 10px;
    }

    .product-detail h1 {
        font-size: clamp(25px, 8vw, 34px);
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .breadcrumbs {
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .choice-card,
    .choice-card.compact {
        grid-template-columns: auto 1fr;
        align-items: flex-start;
    }

    .choice-card b,
    .choice-card.compact b.payment-badge {
        grid-column: 2;
        white-space: normal;
        margin-left: 0;
    }

    .checkout-grid {
        gap: 16px;
    }

    .checkout-summary-panel {
        order: -1;
    }

    .checkout-summary-line,
    .checkout-total-row {
        gap: 10px;
    }

    .checkout-summary-line span,
    .checkout-total-row span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .cart-table {
        display: block;
        width: 100%;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: grid;
        gap: 12px;
    }

    .cart-table tr {
        display: grid;
        grid-template-columns: 66px 1fr;
        gap: 8px 12px;
        background: #fff;
        border: 1px solid #eadfca;
        border-radius: 18px;
        padding: 12px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
    }

    .cart-table td {
        display: block;
        border: 0;
        padding: 0;
        min-width: 0;
    }

    .cart-table td:nth-child(n+3) {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding-top: 7px;
        border-top: 1px solid rgba(15, 23, 42, .07);
    }

    .cart-table td:nth-child(3)::before { content: 'Cantidad'; font-weight: 800; color: #746b60; }
    .cart-table td:nth-child(4)::before { content: 'Disponible'; font-weight: 800; color: #746b60; }
    .cart-table td:nth-child(5)::before { content: 'Precio'; font-weight: 800; color: #746b60; }
    .cart-table td:nth-child(6)::before { content: 'Total'; font-weight: 800; color: #746b60; }

    html[lang="it"] .cart-table td:nth-child(3)::before { content: 'Quantità'; }
    html[lang="it"] .cart-table td:nth-child(4)::before { content: 'Disponibile'; }
    html[lang="it"] .cart-table td:nth-child(5)::before { content: 'Prezzo'; }

    .cart-table td:last-child {
        justify-content: stretch;
    }

    .cart-table td:last-child::before {
        content: '';
        display: none;
    }

    .cart-table td:last-child .btn {
        width: 100%;
    }

    .thumb {
        width: 62px;
        height: 62px;
    }

    .cart-summary {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cart-summary-actions,
    .cart-summary-actions .btn,
    .cart-summary-actions button {
        width: 100%;
    }

    .footer {
        padding: 26px 0 96px;
    }

    .footer-grid,
    .footer-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }

    .whatsapp-float.whatsapp-float-admin {
        right: 14px;
        bottom: 14px;
        padding: 12px 13px;
        max-width: calc(100vw - 28px);
    }
}

@media (max-width: 430px) {
    .grid.product-grid {
        grid-template-columns: 1fr;
    }

    .product-img {
        height: 170px;
    }

    .hero-card,
    .panel {
        padding: 16px;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }
}


/* === Bloque 61.1 - Productos mobile: fix fino === */
@media (max-width: 1024px) {
    .topbar {
        position: sticky;
        top: 0;
        z-index: 500;
    }

    .nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px 10px !important;
        align-items: center !important;
        padding: 7px 0 !important;
    }

    .brand,
    .brand img,
    .logo {
        min-width: 0 !important;
    }

    .logo {
        height: 42px !important;
        max-width: min(175px, 52vw) !important;
        object-fit: contain !important;
    }

    .public-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        min-height: 40px !important;
        padding: 8px 11px !important;
        border: 1px solid rgba(15, 23, 42, .10) !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #1f2937 !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .08) !important;
        cursor: pointer !important;
    }

    .public-menu-toggle span {
        display: block !important;
        width: 4px !important;
        height: 4px !important;
        border-radius: 999px !important;
        background: #1f2937 !important;
    }

    .public-menu-toggle strong {
        margin-left: 3px !important;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    .menu.compact-menu {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        display: none !important;
        overflow: visible !important;
        padding: 8px 0 2px !important;
        gap: 8px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body.public-menu-open .menu.compact-menu {
        display: flex !important;
    }

    .menu.compact-menu > a,
    .menu.compact-menu .nav-dropdown > button,
    .menu.compact-menu .mini-lang a {
        width: 100% !important;
        min-height: 42px !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 13px !important;
        font-size: 14px !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, .07) !important;
        white-space: normal !important;
    }

    .menu.compact-menu .nav-dropdown,
    .menu.compact-menu .nav-dropdown-menu {
        width: 100% !important;
    }

    .menu.compact-menu .nav-dropdown-menu {
        position: static !important;
        display: grid !important;
        min-width: 0 !important;
        margin-top: 7px !important;
        padding: 7px !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, .72) !important;
    }

    .menu.compact-menu .mini-lang {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
}

@media (max-width: 760px) {
    .catalog-hero {
        display: none !important;
    }

    .section-block {
        padding-top: 14px !important;
    }

    .advanced-catalog-filter.panel,
    .catalog-filter.panel {
        padding: 14px !important;
        margin: 0 -2px 14px !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .07) !important;
    }

    .advanced-catalog-filter .three,
    .catalog-filter .three {
        grid-template-columns: 1fr !important;
        gap: 11px !important;
    }

    .advanced-catalog-filter label span,
    .catalog-filter label span {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .advanced-catalog-filter input,
    .advanced-catalog-filter select,
    .catalog-filter input,
    .catalog-filter select {
        min-height: 46px !important;
        border-radius: 14px !important;
        font-size: 16px !important;
    }

    .filter-switches {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 9px !important;
        margin-top: 4px !important;
    }

    .filter-switches label {
        width: 100% !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border-radius: 16px !important;
        line-height: 1.15 !important;
        text-align: left !important;
        font-size: 13px !important;
        overflow: hidden !important;
    }

    .filter-switches input[type="checkbox"] {
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .advanced-catalog-filter .actions,
    .catalog-filter .actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-top: 2px !important;
    }

    .advanced-catalog-filter .actions .btn,
    .catalog-filter .actions .btn {
        width: 100% !important;
        min-height: 44px !important;
    }

    .category-chips {
        margin: 10px -14px 12px !important;
        padding: 0 14px 10px !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        scrollbar-width: none !important;
        border-bottom: 1px solid rgba(15,23,42,.08) !important;
    }

    .category-chips::-webkit-scrollbar {
        display: none !important;
    }

    .category-chips .chip,
    .chip {
        flex: 0 0 auto !important;
        max-width: 72vw !important;
        min-height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 9px 14px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 13px !important;
    }

    .catalog-bar {
        margin: 8px 0 12px !important;
        font-size: 15px !important;
    }

    .grid.product-grid {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    .product-card.card,
    .product-card {
        padding: 12px !important;
        border-radius: 20px !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    .product-card > a:first-child {
        display: block !important;
        background: #fff !important;
        border: 1px solid #eef0f2 !important;
        border-radius: 18px !important;
        padding: 8px !important;
    }

    .product-card .product-img,
    .product-img {
        width: 100% !important;
        height: 180px !important;
        max-height: 180px !important;
        object-fit: contain !important;
        border: 0 !important;
        border-radius: 12px !important;
        padding: 4px !important;
        background: #fff !important;
    }

    .product-meta {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    .product-meta::-webkit-scrollbar {
        display: none !important;
    }

    .product-meta .badge {
        flex: 0 0 auto !important;
        max-width: 78vw !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 5px 9px !important;
        font-size: 11px !important;
    }

    .product-card h3 {
        min-height: 0 !important;
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-card .muted {
        margin: 0 !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    .product-card .price {
        font-size: 20px !important;
        margin: 0 !important;
    }

    .product-card .actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 2px !important;
    }

    .product-card .actions form,
    .product-card .actions .btn,
    .product-card .actions button {
        width: 100% !important;
    }
}

@media (max-width: 380px) {
    .filter-switches,
    .advanced-catalog-filter .actions,
    .catalog-filter .actions,
    .product-card .actions {
        grid-template-columns: 1fr !important;
    }

    .logo {
        max-width: 145px !important;
    }
}


/* === Bloque 63 - idioma visible fuera del menú en mobile === */
.public-lang-quick {
    display: none;
}

@media (max-width: 1024px) {
    .nav {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
    }

    .public-lang-quick {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 3px !important;
        border: 1px solid rgba(15, 23, 42, .10) !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.96) !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .08) !important;
        white-space: nowrap !important;
    }

    .public-lang-quick a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 0 9px !important;
        border-radius: 999px !important;
        color: #1f2937 !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    .public-lang-quick a.active {
        background: #0897d5 !important;
        color: #fff !important;
    }

    .menu.compact-menu .mini-lang {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .logo {
        max-width: min(150px, 45vw) !important;
    }

    .public-lang-quick a {
        min-width: 31px !important;
        min-height: 31px !important;
        padding: 0 7px !important;
        font-size: 11px !important;
    }

    .public-menu-toggle {
        min-height: 36px !important;
        padding: 7px 9px !important;
    }

    .public-menu-toggle strong {
        font-size: 12px !important;
    }
}
