:root{--navy:#173655;--navy2:#224563;--ink:#22384a;--muted:#748492;--cream:#faf9f6;--gold:#efb868;--border:#e5ebed;--accent:#285b7a;--shadow:0 14px 38px rgba(26,48,67,.09)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Segoe UI,Inter,Arial,sans-serif;background:#fbfcfd;color:var(--ink);font-size:15px}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}a{text-decoration:none;color:inherit}.inner{width:min(1200px,calc(100% - 48px));margin:0 auto}.notice-bar{background:#16364f;color:#dce9f1;text-align:center;font-size:12px;padding:9px 0;letter-spacing:.35px}.site-header{background:#fff;border-bottom:1px solid #e5ebec;position:sticky;top:0;z-index:20;box-shadow:0 1px 5px #26384a08}.header-content{height:84px;display:flex;gap:36px;align-items:center}.logo{display:flex;align-items:center;gap:10px;min-width:194px}.logo-mark{background:var(--navy);color:#efb868;border-radius:12px;width:48px;height:48px;display:grid;place-items:center;font-size:29px;font-weight:900;box-shadow:0 6px 14px #17365521}.logo strong{display:block;font-weight:900;font-size:19px;letter-spacing:1.2px;line-height:1.05}.logo small{display:block;font-size:9px;letter-spacing:2.1px;margin-top:6px;color:#7d8892}.search-wrap{display:flex;flex:1;align-items:center;min-width:100px;background:#f5f7f8;border:1px solid #e8eced;border-radius:11px;height:46px;padding:0 15px;gap:9px}.search-symbol{font-size:27px;color:#647b8e;font-weight:300;line-height:1}.search-wrap:focus-within{border-color:#8bafc4;box-shadow:0 0 0 3px #ddeef855}.search-wrap input{background:transparent;border:0;outline:0;width:100%;color:#183c5b;font-size:14px}.search-wrap input::placeholder{color:#98a5ae}.actions{display:flex;align-items:center;gap:12px}.header-link{background:transparent;border:0;color:#31526c;font-weight:600;padding:12px 5px;white-space:nowrap}.cart-button{display:flex;align-items:center;gap:8px;color:white;background:var(--navy);border:0;padding:13px 16px;border-radius:10px;font-size:14px;font-weight:700;white-space:nowrap}.cart-count{background:#f3bd74;color:#22384a;border-radius:20px;min-width:22px;line-height:22px;font-size:12px;text-align:center}.hero{min-height:368px;background:linear-gradient(118deg,#15334f 5%,#205273 77%,#2a627a 100%);color:white;overflow:hidden}.hero-content{min-height:368px;display:flex;align-items:stretch;position:relative}.hero-copy{position:relative;z-index:2;flex:0 0 62%;padding:52px 0 48px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2.5px;color:#efb868}.hero h1{font-size:clamp(34px,4.1vw,55px);letter-spacing:-1.7px;line-height:1.1;margin:17px 0 17px;font-weight:850}.hero h1 em{font-style:normal;color:#f4bf7b}.hero p{max-width:535px;font-size:15px;line-height:1.8;color:#e0eaf0;margin:0 0 24px}.primary-action{display:inline-flex;gap:16px;align-items:center;background:#efbd77;border-radius:9px;color:#243b4a;font-weight:800;padding:14px 18px;box-shadow:0 7px 18px #0b2b3e44;transition:transform .2s}.primary-action:hover{transform:translateY(-2px)}.trust{display:flex;flex-wrap:wrap;gap:18px;margin-top:30px;font-size:12px;color:#c6dfe8}.hero-art{position:absolute;right:0;top:0;width:42%;height:100%;pointer-events:none}.hero-circle{position:absolute;border-radius:50%;border:1px solid #99b8cb33}.hero-circle-one{width:460px;height:460px;right:-108px;top:-45px;background:radial-gradient(circle at 39% 44%,#4e8fab50,#ffffff0a 75%)}.hero-circle-two{width:290px;height:290px;right:100px;top:50px;border:1px dashed #bdd6e444}.feature-tile{position:absolute;top:105px;right:32px;background:#fff;color:#1a3951;padding:25px;display:flex;align-items:center;gap:18px;width:330px;border-radius:18px;box-shadow:0 25px 50px #08233766;transform:rotate(-5deg)}.feature-symbol{background:#f3eee5;color:#d3964f;border-radius:16px;display:grid;place-items:center;font-size:45px;width:78px;height:78px}.feature-tile small{display:block;color:#7b8791;font-size:11px;margin-bottom:9px}.feature-tile strong{font-size:18px;line-height:1.3;display:block}.decor-box{position:absolute;border-radius:12px;background:#ffc27d;box-shadow:0 15px 25px #0c344750}.decor-box-one{width:120px;height:65px;right:0;top:275px;transform:rotate(11deg)}.decor-box-two{width:40px;height:40px;right:370px;top:73px;transform:rotate(25deg)}.mode-banner{padding:13px 18px;border-radius:9px;color:#77542d;background:#fff6e9;border:1px solid #f5dfb9;font-weight:650;font-size:12px;margin:22px 0 8px}.mode-banner.live{color:#266650;background:#eaf8f0;border-color:#cae7d7}.benefits{display:grid;grid-template-columns:repeat(3,1fr);padding:28px 0 29px;gap:25px;border-bottom:1px solid var(--border)}.benefits>div{display:flex;align-items:center;gap:13px}.benefit-icon{height:48px;width:48px;border-radius:14px;display:grid;place-items:center;background:#e9f0f4;color:#356885;font-size:27px}.benefits strong{display:block;font-size:13px}.benefits small{display:block;color:#85939d;margin-top:6px;font-size:11px}.catalog-section{padding:47px 0 60px}.section-title{display:flex;justify-content:space-between;gap:10px;align-items:end;margin-bottom:26px}.eyebrow.dark{color:#c18a43}.section-title h2{font-size:31px;letter-spacing:-.8px;margin:11px 0 9px;color:#1a3750}.section-title p{color:#82919c;font-size:13px;margin:0}.result-count{font-size:12px;color:#82919c;background:#f2f5f6;border:1px solid #e8edef;padding:9px 12px;border-radius:9px}.category-filters{display:flex;gap:9px;overflow-x:auto;padding-bottom:18px}.filter{color:#607585;background:white;border:1px solid #e1e7e9;border-radius:8px;padding:11px 15px;white-space:nowrap;font-size:12px;font-weight:650;transition:.15s}.filter:hover{border-color:#9bb7c8}.filter.active{background:var(--navy);color:#fff;border-color:var(--navy)}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.product-card{background:white;border:1px solid #e9edef;border-radius:15px;overflow:hidden;box-shadow:0 3px 14px #26476409;transition:transform .2s,box-shadow .2s}.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.product-picture{position:relative;background:linear-gradient(145deg,#eef1f3,#e2eaf0);height:216px;display:grid;place-items:center;overflow:hidden}.product-image{width:100%;height:100%;object-fit:cover;position:absolute;z-index:1;inset:0}.picture-placeholder{font-size:87px;color:#98adbb;opacity:.55}.featured-tag{position:absolute;top:14px;left:14px;font-size:9px;letter-spacing:1.25px;font-weight:800;color:#765321;background:#ffdfab;padding:8px 10px;border-radius:5px;z-index:2}.product-content{padding:20px}.product-category{color:#a47747;font-size:10px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}.product-name{font-size:16px;line-height:1.4;margin:10px 0 10px;min-height:44px;color:#20394c}.product-sku{color:#8a989f;font-size:11px;display:block}.product-bottom{border-top:1px solid #edf0f1;margin-top:19px;padding-top:17px;display:flex;align-items:center;justify-content:space-between;gap:10px}.price-block small{font-size:10px;color:#8b99a2;display:block;margin-bottom:5px}.price-block strong{color:#153c5b;font-size:20px;white-space:nowrap}.add-button{padding:11px 13px;border:1px solid #d8e3eb;background:#eff5f8;color:#23577b;border-radius:8px;font-weight:750;font-size:12px;white-space:nowrap}.add-button:hover:not(:disabled){background:#dceefa}.add-button:disabled{opacity:.5}.loading,.empty-state{grid-column:1/-1;text-align:center;padding:80px 20px;background:#f2f5f6;color:#84939d;border-radius:14px}.empty-state h3{color:#294861}.client-banner{display:flex;align-items:center;gap:20px;background:#eef4f6;border:1px solid #dde9ed;border-radius:14px;padding:28px 30px;margin-bottom:55px}.client-icon{display:grid;place-items:center;min-width:62px;height:62px;border-radius:50%;background:#d9e9ef;color:#316181;font-size:38px}.client-banner div:nth-child(2){flex:1}.client-banner strong{font-size:17px}.client-banner p{max-width:685px;margin:9px 0 0;color:#708391;line-height:1.55;font-size:13px}.secondary-action{border:1px solid #bdd3de;color:#32617e;background:#fff;border-radius:9px;padding:13px 17px;font-weight:750;white-space:nowrap}.secondary-action:hover{background:#f5fbff}footer{background:#17344e;color:#b3cbd6}.footer-main{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 0;font-size:12px}.footer-logo{color:white;font-size:16px;font-weight:900}.footer-logo span{font-size:11px;font-weight:400;color:#a6c0cf}.drawer-open{overflow:hidden}.scrim{position:fixed;inset:0;background:#0c203b66;z-index:39}.cart-drawer{position:fixed;right:0;top:0;bottom:0;width:min(440px,100%);z-index:40;background:white;box-shadow:-10px 0 30px #12354e33;transform:translateX(105%);transition:transform .24s;display:flex;flex-direction:column}.cart-drawer.open{transform:translateX(0)}.drawer-header{padding:28px;display:flex;justify-content:space-between;border-bottom:1px solid var(--border)}.drawer-header small{color:#c9954f;font-size:10px;font-weight:800;letter-spacing:2px}.drawer-header h2{margin:9px 0 0;color:#1c3c55;font-size:24px}.drawer-header h2 span{font-weight:400;color:#8999a0;font-size:18px}.close-drawer{border:0;background:#f1f5f7;color:#4b6477;width:36px;height:36px;border-radius:8px;font-size:27px}.cart-items{flex:1;overflow:auto;padding:20px 27px}.cart-empty{text-align:center;padding:100px 0 30px;color:#9ba7b0}.cart-empty-icon{font-size:60px}.cart-empty h3{color:#324f64;margin-bottom:7px}.cart-empty p{font-size:13px;line-height:1.6}.cart-item{display:flex;gap:13px;border-bottom:1px solid var(--border);padding:17px 0}.cart-thumb{height:70px;min-width:70px;background:#edf2f5;border-radius:9px;overflow:hidden}.cart-thumb img{width:100%;height:100%;object-fit:cover}.cart-info{display:flex;flex-direction:column;gap:6px;flex:1}.cart-info strong{font-size:13px}.cart-info small{color:#8d9ba4;font-size:11px}.cart-price{font-weight:750;color:#1c5479;font-size:13px}.qty-control{display:flex;align-items:center;width:max-content;margin-top:4px;border:1px solid #dde6ea;border-radius:7px;overflow:hidden}.qty-control>*{min-width:29px;height:27px;display:grid;place-items:center;background:white;border:0}.qty-control button:hover{background:#eef3f5}.qty-control span{color:#273f51;font-size:12px}.remove-item{border:0;background:transparent;color:#b18b8a;align-self:flex-start;font-size:20px}.drawer-bottom{border-top:1px solid #e3ebee;padding:26px 28px 30px;box-shadow:0 -5px 22px #102c440a}.totals-row{display:flex;justify-content:space-between;font-size:15px;margin-bottom:12px}.totals-row strong{color:#1a4665;font-size:22px}.drawer-bottom small{font-size:11px;color:#83909c;line-height:1.55;display:block}.checkout-button{background:var(--navy);color:white;width:100%;border:0;border-radius:8px;padding:14px 10px;margin:18px 0 7px;font-weight:800;font-size:13px}.sdk-note{color:#9aa7b1;font-size:11px;display:block;text-align:center}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,80px);background:#173c5c;color:#fff;border-radius:8px;padding:13px 19px;box-shadow:0 10px 25px #122b4166;z-index:50;font-size:13px;opacity:0;transition:.25s;pointer-events:none;max-width:calc(100% - 30px);text-align:center}.toast.shown{opacity:1;transform:translate(-50%,0)}@media(max-width:1000px){.header-content{gap:18px}.logo{min-width:150px}.hero-copy{flex-basis:65%}.hero-art{right:-140px}.feature-tile{right:18px;transform:scale(.87) rotate(-5deg)}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.inner{width:min(100% - 28px,1200px)}.desktop-only{display:none}.header-content{height:auto;padding:13px 0;display:grid;grid-template-columns:1fr auto;gap:13px}.logo{min-width:0}.logo-mark{width:39px;height:39px;font-size:24px}.logo strong{font-size:16px}.logo small{font-size:8px;letter-spacing:1px}.search-wrap{grid-row:2;grid-column:1/-1;width:100%;height:43px}.actions{grid-row:1;grid-column:2}.cart-button{padding:10px}.cart-button>span:not(.cart-count){display:none}.header-link{font-size:20px;padding:5px}.hero,.hero-content{min-height:initial}.hero-copy{padding:42px 0;flex:1}.hero h1{font-size:35px}.hero p{font-size:13px;max-width:330px}.hero-art{opacity:.2;right:-200px;width:400px}.trust{gap:12px;font-size:10px}.benefits{grid-template-columns:1fr;gap:14px;padding:22px 0}.benefits>div{gap:13px}.benefit-icon{width:40px;height:40px}.catalog-section{padding:35px 0}.section-title{align-items:start}.section-title h2{font-size:25px}.section-title p{font-size:12px}.result-count{font-size:10px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.product-picture{height:140px}.product-content{padding:13px}.product-name{font-size:13px;min-height:54px}.product-sku{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-bottom{flex-direction:column;align-items:stretch;margin-top:13px;padding-top:13px}.price-block strong{font-size:17px}.add-button{width:100%;padding:9px;font-size:11px}.client-banner{padding:20px;flex-wrap:wrap}.client-icon{min-width:45px;height:45px;font-size:27px}.client-banner div:nth-child(2){flex-basis:70%}.secondary-action{width:100%}.footer-main{flex-direction:column;align-items:flex-start;gap:12px}.footer-logo{font-size:15px}}
.catalog-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;padding:32px 0 0}
.page-btn{background:#fff;color:#29465d;border:1px solid #d7e1e7;padding:10px 14px;border-radius:9px;font-size:12px;font-weight:750}
.page-btn.current{background:#173b59;color:#fff}.page-btn:hover:not(:disabled){border-color:#397092}.page-btn:disabled{opacity:.35;cursor:not-allowed}
.page-summary{font-size:12px;color:#708795}

/* Identidad de tienda configurable desde Administrador (v0.3.3) */
[hidden]{display:none!important}
body{background:var(--shop-bg,#fbfcfd);color:var(--ink)}
.notice-bar{background:var(--navy)}
.logo-mark{background:var(--navy);color:var(--gold)}
.logo-mark img{width:100%;height:100%;object-fit:contain;background:white;border-radius:10px;padding:3px}
.cart-button,.filter.active{background:var(--navy);border-color:var(--navy)}
.hero{background:linear-gradient(118deg,var(--navy) 5%,var(--navy2) 100%)}
.hero h1 em,.hero .eyebrow{color:var(--gold)}
.primary-action{background:var(--gold);color:#22384a}
.feature-tile .feature-symbol{color:var(--navy2)}
.eyebrow.dark,.product-category{color:var(--navy2)}
.section-title h2,.product-name,.price-block strong{color:var(--navy)}
.add-button{color:var(--navy);border-color:var(--navy2)}
.add-button:hover:not(:disabled){background:#e7eef3}
footer{background:var(--navy)}
.contact-link{white-space:nowrap;color:var(--navy);background:#edf3f7;border-radius:8px;padding:9px 12px}
@media(max-width:680px){.contact-link{font-size:11px;max-width:92px;overflow:hidden;text-overflow:ellipsis}}

/* Fase 3.4: pie de página editable, precios con IVA y resumen imprimible. */
.footer-main{align-items:flex-start;gap:38px}
.footer-brand{display:grid;gap:10px;max-width:420px}
.footer-brand #footerNote{font-size:12px;line-height:1.65;color:#cbdae2}
.footer-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 25px;flex:1;min-width:0}
.footer-contacts>a,.footer-contacts>span{font-size:12px;line-height:1.6;color:#edf5f7;overflow-wrap:anywhere}
.footer-contacts>a{text-decoration:underline;text-decoration-color:#adc9d56a;text-underline-offset:3px}
.footer-contacts>a:hover{color:var(--gold)}
.price-block small{max-width:190px}
.cart-grand-total{border-top:1px solid #dce7eb;padding-top:12px;margin-top:10px;font-weight:850}
.cart-grand-total strong{font-size:25px;color:var(--navy)}
.print-cart{width:100%;border:1px solid var(--navy);background:var(--navy);color:white;border-radius:8px;padding:13px 10px;margin-top:18px;font-weight:800;font-size:13px}
.print-cart:hover:not(:disabled){filter:brightness(1.1)}
.print-cart:disabled{opacity:.45;cursor:not-allowed}
.checkout-button{margin:9px 0 7px}
.print-sheet{display:none}
@media(max-width:850px){.footer-contacts{grid-template-columns:1fr}.footer-main{gap:18px}}
@media(max-width:680px){.footer-main{flex-direction:column;gap:22px}.footer-contacts{width:100%;grid-template-columns:1fr 1fr}.drawer-bottom{padding:17px 22px 19px}.totals-row{margin-bottom:8px}.totals-row strong{font-size:19px}}
@media(max-width:420px){.footer-contacts{grid-template-columns:1fr}}
@media print{
  body.printing-cart{background:white!important;color:#111!important;font-family:Arial,sans-serif!important;margin:0!important}
  body.printing-cart > *:not(#printSheet){display:none!important}
  body.printing-cart #printSheet{display:block!important;position:static!important;padding:8mm 9mm!important;color:#111!important;min-height:0!important}
  body.printing-cart .print-title{border-bottom:2px solid #222;margin-bottom:20px;padding-bottom:12px}
  body.printing-cart .print-brand{display:flex;align-items:center;gap:16px;min-height:22mm}
  body.printing-cart .print-company-logo{display:block;object-fit:contain;max-width:38mm;max-height:24mm;width:auto;height:auto;flex-shrink:0}
  body.printing-cart .print-brand-titles{flex:1;min-width:0}
  body.printing-cart h1{font-size:22px;margin:0 0 7px;letter-spacing:.3px}
  body.printing-cart h2{font-size:15px;margin:0 0 6px}
  body.printing-cart .print-title p{font-size:11px;margin:0;color:#444}
  body.printing-cart .print-table{border-collapse:collapse;width:100%;font-size:10.5px}
  body.printing-cart .print-table th{background:#ececec!important;print-color-adjust:exact;-webkit-print-color-adjust:exact;text-align:left;padding:9px 5px;border-bottom:1px solid #222}
  body.printing-cart .print-table td{padding:9px 5px;vertical-align:top;border-bottom:1px solid #bbb;overflow-wrap:anywhere}
  body.printing-cart .print-table tr{break-inside:avoid}
  body.printing-cart .print-table th:nth-child(n+3),body.printing-cart .print-table td:nth-child(n+3){text-align:right}
  body.printing-cart .print-totals{margin:25px 0 14px auto;width:65%;min-width:240px}
  body.printing-cart .print-amount{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #dedede;padding:8px 0;font-size:13px}
  body.printing-cart .print-amount:last-child{font-weight:bold;font-size:16px;border-top:2px solid #111;border-bottom:0}
  body.printing-cart .print-custom-footer{margin-top:25px;padding-top:12px;border-top:1px solid #bbb;font-size:10px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
  @page{size:auto;margin:12mm}
}

/* Fase 3.6 · Carrusel de hasta cinco fotografías por producto */
.product-picture .product-gallery-open{
  position:absolute;inset:0;z-index:2;border:0;background:transparent;
  cursor:zoom-in;display:block;padding:0;
}
.product-zoom-icon{
  position:absolute;right:12px;top:12px;display:grid;place-items:center;
  width:30px;height:30px;border-radius:9px;color:#183b56;background:#ffffffed;
  font-size:24px;font-weight:bold;box-shadow:0 2px 8px #0f284329;
}
.product-picture .featured-tag{z-index:3}
.product-picture .gallery-arrow{
  position:absolute;top:50%;z-index:4;transform:translateY(-50%);
  display:grid;place-items:center;width:36px;height:42px;border:1px solid #ffffff91;
  border-radius:10px;background:#0a253fc9;color:white;
  font-size:29px;line-height:1;cursor:pointer;transition:background .2s ease;
}
.product-picture .gallery-arrow:hover,.product-picture .gallery-arrow:focus-visible{
  background:#0a253ff2;
}
.product-picture .gallery-prev{left:10px}
.product-picture .gallery-next{right:10px}
.product-picture .gallery-indicators{
  position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:4;
  display:flex;align-items:center;gap:7px;padding:5px 9px;
  border-radius:50px;background:#092940a8;max-width:calc(100% - 24px);
}
.product-picture .gallery-dot{
  width:10px;height:10px;min-width:10px;padding:0;border:1px solid #ffffffad;
  border-radius:50%;background:#ffffff7a;cursor:pointer;
}
.product-picture .gallery-dot.active{background:var(--gold,#efb868);border-color:#fff;transform:scale(1.12)}
.product-picture .gallery-count{
  padding-left:4px;white-space:nowrap;font-size:10px;color:white;font-weight:800;
  font-variant-numeric:tabular-nums;
}
.product-picture button:focus-visible,.gallery-overlay button:focus-visible{
  outline:3px solid var(--gold,#efb868);outline-offset:2px;
}
body.gallery-open{overflow:hidden}
.gallery-overlay{
  position:fixed;inset:0;z-index:65;padding:24px;overflow-y:auto;
  background:#071a2beb;display:flex;align-items:center;justify-content:center;
}
.gallery-dialog{
  width:min(840px,100%);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);
  border-radius:18px;display:flex;flex-direction:column;overflow:hidden;
  background:white;box-shadow:0 30px 90px #0007;
}
.gallery-dialog-top{
  display:flex;justify-content:space-between;align-items:start;gap:18px;padding:18px 22px;
  background:white;color:var(--navy);
}
.gallery-dialog-top small{display:block;color:#678092;font-weight:850;letter-spacing:1.5px;font-size:10px}
.gallery-dialog-top h2{font-size:19px;line-height:1.35;margin:5px 0 0}
.gallery-close{
  min-width:38px;height:38px;border:0;border-radius:10px;font-size:29px;
  line-height:1;background:#edf1f4;color:#244960;cursor:pointer;
}
.gallery-stage{
  position:relative;background:#f2f5f8;min-height:200px;height:min(60vh,560px);
  display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y;
}
.gallery-stage img{width:100%;height:100%;object-fit:contain;user-select:none}
.gallery-stage-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  display:grid;place-items:center;min-width:44px;height:52px;
  border-radius:12px;border:1px solid #ffffffbd;background:#122c47dc;
  color:white;font-size:36px;line-height:1;cursor:pointer;
}
.gallery-stage-arrow:hover{background:#122c47}
.gallery-stage-prev{left:15px}.gallery-stage-next{right:15px}
.gallery-dialog-bottom{padding:14px 20px 18px;display:grid;gap:11px;justify-items:center}
.gallery-dialog-bottom>span{font-size:12px;color:#4b6377;font-weight:800}
.gallery-thumbnails{display:flex;max-width:100%;gap:9px;overflow-x:auto;padding:3px}
.gallery-thumbnail{
  border:2px solid transparent;border-radius:9px;display:grid;place-items:center;
  background:#eff3f6;padding:3px;width:76px;height:65px;flex-shrink:0;cursor:pointer;
}
.gallery-thumbnail.selected{border-color:var(--navy)}
.gallery-thumbnail img{width:100%;height:100%;object-fit:contain;border-radius:4px}
.gallery-thumbnail:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:680px){
  .product-picture .gallery-arrow{width:29px;height:35px;font-size:25px;border-radius:8px}
  .product-picture .gallery-prev{left:4px}.product-picture .gallery-next{right:4px}
  .product-picture .gallery-indicators{gap:5px;padding:4px 6px;bottom:6px}
  .product-picture .gallery-dot{width:7px;height:7px;min-width:7px}
  .product-picture .gallery-count{font-size:9px}
  .product-zoom-icon{top:8px;right:7px;width:25px;height:25px;font-size:18px}
  .gallery-overlay{padding:9px}
  .gallery-dialog{max-height:calc(100dvh - 18px)}
  .gallery-dialog-top{padding:13px 14px}
  .gallery-dialog-top h2{font-size:15px}
  .gallery-stage{height:min(56dvh,480px)}
  .gallery-stage-arrow{min-width:35px;height:46px;font-size:29px}
  .gallery-stage-prev{left:5px}.gallery-stage-next{right:5px}
  .gallery-thumbnail{width:61px;height:55px}
}
@media print{
  body:not(.printing-cart) .gallery-overlay{display:none!important}
}

/* Fase 3.7 · indicación de existencias en unidad base */
.stock-badge{margin-top:11px;padding:9px 11px;border-radius:9px;border:1px solid #dce6eb;display:flex;align-items:center;gap:7px;justify-content:space-between;flex-wrap:wrap;font-size:11px;line-height:1.4;background:#f4f7fa;color:#506679}
.stock-indicator{font-weight:750;display:flex;align-items:center;gap:5px}
.stock-indicator:before{content:"";height:8px;width:8px;background:currentColor;border-radius:50%;flex:0 0 8px}
.stock-quantity{font-weight:700;font-variant-numeric:tabular-nums}
.stock-badge.stock-in{background:#edf8f0;border-color:#d3e9d8;color:#267645}
.stock-badge.stock-low{background:#fff7e8;border-color:#f1dfb8;color:#91620f}
.stock-badge.stock-out{background:#fdf0ef;border-color:#f0d1ce;color:#9b3632}
.stock-badge.stock-unknown{background:#f1f5f8;border-color:#e0e7ed;color:#566878}
.cart-info .stock-badge{margin-top:3px;padding:6px 8px;font-size:10px}
@media(max-width:680px){.stock-badge{font-size:10px;padding:7px 8px;gap:4px}.stock-quantity{width:100%}}

.stock-location{display:block;width:100%;font-size:9px;font-weight:550;color:inherit;opacity:.75}

/* Fase 3.8 · Inicio comercial: destacados y escaparates por categoria web */
.home-products{padding:43px 0 60px;scroll-margin-top:115px}
.home-heading{margin-bottom:25px;align-items:center}
.home-browse-all,.home-view-more{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid #c9dbe7;background:#fff;color:var(--navy);border-radius:10px;
  font-size:13px;font-weight:800;padding:12px 17px;white-space:nowrap;
  transition:background .16s,border .16s,transform .16s;
}
.home-browse-all:hover,.home-view-more:hover{background:#eaf4f9;border-color:#9dbed2;transform:translateY(-1px)}
.home-featured{background:linear-gradient(130deg,#f5f9fc 0%,#ffffff 85%);border:1px solid #e4eaf0;
  box-shadow:0 10px 35px #203e5a0a;border-radius:19px;padding:26px 24px 28px;margin-bottom:42px}
.home-shelf-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:19px}
.home-shelf-head h3{font-size:24px;color:var(--navy);letter-spacing:-.65px;margin:7px 0 0;font-weight:820}
.home-shelf-head .eyebrow{font-size:10px;letter-spacing:2px}
.home-category-caption{font-size:12px;color:#788d9a;margin:6px 0 0}
.home-carousel-controls{display:flex;align-items:center;gap:9px}
.home-carousel-controls button{background:#fff;color:var(--navy);border:1px solid #d6e0e8;
  font-size:29px;font-weight:bold;width:38px;height:38px;line-height:30px;border-radius:11px}
.home-carousel-controls button:hover{background:#ebf4f8}
.home-category-sections{display:grid;gap:36px}
.home-category-block{padding-bottom:31px;border-bottom:1px solid #e1eaf0}
.home-category-block:last-child{border-bottom:none}
.home-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-product-grid.as-carousel{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(228px,calc((100% - 54px) / 4));
  grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding:5px 3px 14px;scrollbar-color:#9eb5c6 #f3f7fa;scrollbar-width:thin}
.home-product-grid.as-carousel .product-card{scroll-snap-align:start}
.home-product-grid .product-card{min-width:0}
.home-product-grid .product-picture{height:177px}
.home-product-grid .product-content{padding:15px}
.home-product-grid .product-name{font-size:14px;min-height:40px}
.home-product-grid .product-bottom{display:flex;flex-direction:column;align-items:stretch;gap:11px}
.home-product-grid .add-button{width:100%}
.home-product-grid .price-block strong{font-size:19px}
.home-product-grid .stock-badge{font-size:10px;gap:5px}
.catalog-back{display:flex;margin-bottom:18px}
#catalogo{scroll-margin-top:106px}
@media(max-width:1000px){
  .home-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-product-grid.as-carousel{grid-auto-columns:minmax(225px,calc((100% - 36px) / 3))}
}
@media(max-width:740px){
  .home-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .home-product-grid.as-carousel{grid-auto-columns:minmax(210px,calc((100% - 18px)/2))}
  .home-products{padding:27px 0 38px}
  .home-featured{padding:17px 13px 20px;margin-bottom:27px}
  .home-shelf-head h3{font-size:20px}
  .home-heading{align-items:flex-start;flex-wrap:wrap}
  .home-view-more,.home-browse-all{font-size:12px;padding:10px 12px}
  .home-product-grid .product-picture{height:148px}
  .home-product-grid .product-content{padding:12px}
  .home-product-grid .product-name{font-size:13px;min-height:52px}
  .home-product-grid .price-block strong{font-size:17px}
  .home-category-sections{gap:23px}
}
@media(max-width:430px){
  .home-product-grid.as-carousel{grid-auto-columns:minmax(205px,75%)}
  .home-product-grid:not(.as-carousel) .product-picture{height:137px}
  .home-shelf-head{gap:10px}
  .home-shelf-head h3{font-size:18px}
}

/* Cuando hay pocos destacados, ocupan el ancho disponible. */
.home-product-grid.as-carousel[data-count="1"]{grid-auto-columns:100%}
.home-product-grid.as-carousel[data-count="2"]{grid-auto-columns:calc((100% - 18px) / 2)}
.home-product-grid.as-carousel[data-count="3"]{grid-auto-columns:calc((100% - 36px) / 3)}
@media(max-width:740px){
  .home-product-grid.as-carousel[data-count]{grid-auto-columns:minmax(210px,calc((100% - 18px) / 2))}
}
@media(max-width:430px){
  .home-product-grid.as-carousel[data-count]{grid-auto-columns:minmax(205px,75%)}
}

/* v0.4.3 · Portada derecha administrable */
.hero-art[hidden],.hero-right-image[hidden],.feature-tile[hidden],.hero-right-image img[hidden],.hero-right-image-error[hidden]{display:none!important}
.hero-art[data-decorations="off"] .hero-circle,.hero-art[data-decorations="off"] .decor-box{display:none}
.hero-art[data-mode="image"]{width:40%;display:flex;align-items:center;justify-content:flex-end}
.hero-right-image{position:relative;z-index:2;width:calc(100% - 12px);height:min(290px,82%);border-radius:19px;overflow:hidden;box-shadow:0 18px 38px #08233755;border:1px solid #ffffff33;background:#ffffff10;pointer-events:none}
.hero-right-image img{display:block;width:100%;height:100%;object-fit:cover}
.hero-right-image-error{display:grid;place-items:center;position:absolute;inset:0;padding:25px;font-weight:750;text-align:center;color:#fff;background:#28465b}
.feature-tile strong{overflow-wrap:anywhere}.feature-tile small{overflow-wrap:anywhere}
.hero.hero-right-hidden .hero-copy{flex-basis:100%;max-width:960px}
.hero-art[data-mode="image"] .decor-box{z-index:3}
@media(max-width:1000px){.hero-art[data-mode="image"]{width:37%;right:0}.hero-right-image{height:min(260px,76%)}.hero-art[data-mode="image"] .decor-box{opacity:.5}}
@media(max-width:680px){
  .hero.has-hero-image .hero-content{display:flex;flex-direction:column}
  .hero.has-hero-image .hero-copy{padding-bottom:18px}
  .hero-art[data-mode="image"]{position:relative;right:auto;top:auto;bottom:auto;left:auto;opacity:1;width:100%;height:215px;margin:0 0 26px;display:flex;align-items:center;justify-content:center;pointer-events:none}
  .hero-art[data-mode="image"] .hero-right-image{height:100%;width:100%;border-radius:14px}
  .hero-art[data-mode="image"] .hero-circle,.hero-art[data-mode="image"] .decor-box{display:none}
  .hero-art[data-mode="card"]{pointer-events:none}
}
@media(prefers-reduced-motion:reduce){.hero-right-image{animation:none;transition:none}}

/* Fase 5: revisión del Pedido y consulta de resultado, sin imágenes. */
.order-dialog{width:min(700px,94vw);max-height:85vh;overflow-y:auto;border:1px solid #d5e1e9;border-radius:18px;padding:0;background:#fff;color:#19314c;box-shadow:0 22px 70px #0005;}
.order-dialog::backdrop{background:#071d31ab;}
.order-dialog-inner{padding:26px;}
.order-dialog h2{margin:0 0 8px;font-size:1.5rem;}
.order-dialog-caption,.order-warning{font-size:.9rem;color:#50647b;line-height:1.5;}
.order-warning{border-left:3px solid #d5a347;padding:9px 12px;background:#fff8e9;}
.order-preview-lines{margin:16px 0;}
.order-preview-line{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e4edf3;}
.order-preview-line small{display:block;color:#64748b;margin-top:4px;}
.order-preview-totals{padding:12px 0;font-size:1rem;}
.order-preview-totals p{display:flex;justify-content:space-between;margin:6px 0;}
.order-preview-totals .grand{font-size:1.25rem;font-weight:800;padding-top:10px;border-top:2px solid #19314c;}
.order-dialog-buttons{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;}
.order-dialog button{padding:12px 17px;border-radius:9px;border:1px solid #d3dfe8;cursor:pointer;}
.order-dialog #confirmOrder{background:#173d60;color:white;font-weight:700;}
.order-dialog button:disabled{opacity:.5;cursor:progress;}
.order-status{font-size:.83rem;line-height:1.5;margin-top:5px;color:#35516b;}
.order-history-card{border:1px solid #d6e0e9;padding:15px;border-radius:12px;margin:10px 0;}
.order-history-card .order-summary-status{font-weight:700;}
@media(max-width:600px){.order-dialog-inner{padding:17px}.order-dialog-buttons button{flex:1}}

.account-name-label{display:inline-block;max-width:120px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.customer-status[hidden]{display:none!important}

/* 0.6.5: el aspecto refleja el estado real, no un gris fijo. */
.checkout-button:hover:not(:disabled){background:var(--navy2);box-shadow:0 3px 10px #17365526}
.checkout-button:disabled{background:#a8b6c0;color:#fff;box-shadow:none;cursor:not-allowed}
.checkout-button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.order-login-action{display:inline-flex;align-items:center;justify-content:center;text-align:center}
.order-dialog-buttons .checkout-button{margin:0;min-height:45px;flex:1 1 180px}
.order-preview-lines{min-width:0}.order-preview-line>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:520px){.order-dialog-buttons{flex-wrap:wrap}.order-dialog-buttons>*{width:100%}}

/* 0.6.7: navegación por categoría principal y subcategorías */
.category-filters{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.category-main-filters{display:flex;flex-wrap:wrap;gap:8px}
.subcategory-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:#fff}
.subcategory-heading{font-weight:700;font-size:13px;margin-right:8px;color:var(--navy)}
.home-subcategory-links{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 20px}
.home-subcategory-link{border:1px solid var(--border);background:#fff;color:var(--navy);padding:8px 13px;border-radius:18px;font-size:13px;font-weight:650}
.home-subcategory-link:hover{border-color:var(--accent);background:#f4f8fa}
@media(max-width:640px){.subcategory-filters{padding:10px}.subcategory-heading{width:100%}.home-subcategory-links{margin-top:0}}
