/* GUPI ROLDÁN · V19
   Collages editables por producto, proporciones reales y versión móvil.
   Esta hoja va después de styles.css para conservar el diseño base. */

/* 1. Tarjetas: los productos ya no son un collage aplastado con object-fit:fill. */
@media (min-width:891px){
  .categories-grid>.cat-clean,
  .categories-grid>.cat-home,
  .categories-grid>.cat-chem{grid-column:span 4;min-height:278px}
  .categories-grid>.cat-plastic,
  .categories-grid>.cat-inst{grid-column:span 6;min-height:254px}
}
.category-card.v15-category{isolation:isolate;contain:layout paint style;}
.category-card.v15-category .cat-art-v19{
  position:absolute;inset:0;display:block;z-index:2;
  overflow:hidden!important;pointer-events:none;
}
.category-card.v15-category .cat-copy{position:relative;z-index:5;pointer-events:none}
.category-card.v15-category .cat-discover{position:relative;z-index:7}
.category-card.v15-category .v19-item{
  position:absolute;display:block;max-width:none;
  object-fit:contain;object-position:center center;
  opacity:1!important;mix-blend-mode:normal!important;
  -webkit-mask-image:none!important;mask-image:none!important;
  filter:drop-shadow(0 8px 7px rgba(29,55,85,.15));
  transform:translate3d(0,0,0) rotate(0deg) scale(1);
  transform-origin:50% 80%;
  transition:transform .6s cubic-bezier(.22,1,.36,1),filter .55s;
  will-change:transform;
}
.category-card.v15-category .cat-collage:before{display:none!important}
.category-card.v15-category .cat-number{display:none!important}

/* Esposiciones proporcionales: por separado para evitar deformaciones. */
.cat-clean .v19-escobas{right:4%;top:8%;width:53%;height:64%}
.cat-clean .v19-cepillo{right:34%;bottom:2%;width:28%;height:35%;z-index:3}
.cat-clean .v19-mechudo{right:0%;bottom:2%;width:34%;height:58%;z-index:4}

.cat-home .v19-jerga{right:29%;bottom:2%;width:44%;height:48%;z-index:3}
.cat-home .v19-fibra{right:6%;top:11%;width:30%;height:73%;z-index:4}
.cat-home .v19-carrusel{right:27%;top:6%;width:18%;height:65%;z-index:2}

.cat-chem .v19-raid{right:35%;bottom:4%;width:20%;height:84%;z-index:3}
.cat-chem .v19-pledge{right:18%;bottom:4%;width:19%;height:76%;z-index:4}
.cat-chem .v19-byebac{right:1%;bottom:4%;width:21%;height:53%;z-index:5}

.cat-plastic .v19-bote{right:42%;bottom:3%;width:26%;height:76%;z-index:3}
.cat-plastic .v19-cubeta{right:19%;bottom:3%;width:33%;height:55%;z-index:5}
.cat-plastic .v19-banco{right:1%;bottom:3%;width:27%;height:75%;z-index:4}

.cat-inst .v19-dispensador{right:51%;bottom:4%;width:23%;height:72%;z-index:3}
.cat-inst .v19-marli{right:18%;bottom:11%;width:41%;height:51%;z-index:4}
.cat-inst .v19-kleenex{right:6%;bottom:3%;width:24%;height:29%;z-index:5}
.cat-inst .v19-senal{right:1%;bottom:10%;width:17%;height:71%;z-index:6}

/* Movimiento independiente al hacer hover, sin deformar fotografías. */
@media (hover:hover) and (pointer:fine){
 .category-card.v15-category:hover{transform:translateY(-6px);box-shadow:0 19px 36px rgba(31,60,93,.13)}
 .category-card.v15-category:hover .v19-item{filter:drop-shadow(0 14px 11px rgba(26,50,80,.20))}
 .category-card:hover .v19-escobas{transform:translate3d(-7px,-10px,0) rotate(-3deg) scale(1.035)}
 .category-card:hover .v19-mechudo{transform:translate3d(5px,-13px,0) rotate(4deg) scale(1.055)}
 .category-card:hover .v19-cepillo{transform:translate3d(-4px,-7px,0) rotate(-5deg) scale(1.04)}
 .category-card:hover .v19-jerga{transform:translate3d(-5px,-10px,0) rotate(-4deg) scale(1.04)}
 .category-card:hover .v19-fibra{transform:translate3d(4px,-13px,0) rotate(4deg) scale(1.045)}
 .category-card:hover .v19-carrusel{transform:translate3d(2px,-8px,0) rotate(-4deg) scale(1.035)}
 .category-card:hover .v19-raid{transform:translate3d(-8px,-13px,0) rotate(-4deg) scale(1.035)}
 .category-card:hover .v19-pledge{transform:translate3d(1px,-8px,0) rotate(3deg) scale(1.03)}
 .category-card:hover .v19-byebac{transform:translate3d(5px,-7px,0) rotate(4deg) scale(1.06)}
 .category-card:hover .v19-bote{transform:translate3d(-7px,-9px,0) rotate(-3deg) scale(1.03)}
 .category-card:hover .v19-cubeta{transform:translate3d(-1px,-12px,0) rotate(4deg) scale(1.035)}
 .category-card:hover .v19-banco{transform:translate3d(5px,-8px,0) rotate(3deg) scale(1.03)}
 .category-card:hover .v19-dispensador{transform:translate3d(-4px,-11px,0) rotate(-3deg) scale(1.04)}
 .category-card:hover .v19-marli{transform:translate3d(2px,-8px,0) rotate(2deg) scale(1.035)}
 .category-card:hover .v19-kleenex{transform:translate3d(-3px,-5px,0) rotate(-2deg) scale(1.035)}
 .category-card:hover .v19-senal{transform:translate3d(3px,-13px,0) rotate(3deg) scale(1.04)}
}
/* El hover también se expresa en el botón de explorar sin depender del mouse. */
.category-card:focus-visible .cat-discover>span{transform:rotate(45deg)}
.category-card:focus-visible{outline-offset:4px}

/* 2. Promoción: despachador nuevo entregado por el cliente, sin fondo blanco. */
.hero-promo-dispenser{right:8%;top:16%;width:38%;height:52%;object-fit:contain;object-position:center;mix-blend-mode:normal!important;filter:drop-shadow(0 15px 12px rgba(30,61,94,.18))}
.hero-promo-box{left:-2%;bottom:2%;width:70%;height:76%;object-fit:contain;object-position:left bottom}
.hero-promo-price{right:1%;top:2%;width:145px;height:145px}
.hero-promo-mini{bottom:8%;left:9%;max-width:70%}
.hero-promo-burst{right:29%;bottom:35%;z-index:7}

/* El carrusel de los tres slides respeta el mismo tamaño. */
@media(min-width:891px){
  .hero,.hero.is-offer,.hero.is-season,
  .hero-inner,.hero.is-offer .hero-inner,.hero.is-season .hero-inner{
    height:600px;min-height:600px;
  }
}

/* 3. Tablets: tarjetas de dos columnas y área más generosa para el texto. */
@media(min-width:621px) and (max-width:890px){
  .categories-grid>.cat-clean,.categories-grid>.cat-home,
  .categories-grid>.cat-chem,.categories-grid>.cat-plastic{
    grid-column:span 6;min-height:252px;
  }
  .categories-grid>.cat-inst{grid-column:span 12;min-height:245px}
  .cat-chem .v19-raid{right:36%;width:18%}
  .cat-chem .v19-pledge{right:17%;width:19%}
  .cat-chem .v19-byebac{right:1%;width:20%}
  .hero-promo-dispenser{right:5%;width:37%;height:48%}
  .hero-promo-box{left:-2%;width:70%}
  .hero-promo-price{width:112px;height:112px}
  .hero-promo-price strong{font-size:29px}
}

/* 4. Mobile-first final: buen espacio para textos + productos legibles. */
@media(max-width:620px){
 :root{--v19-side:17px}
 html{scroll-padding-top:76px}
 body{overflow-x:clip}
 .container{width:calc(100% - (var(--v19-side) * 2))}
 .navbar{min-height:62px;height:62px;gap:7px}
 .brand-logo-nav{width:100px;max-width:30vw;min-width:0;height:auto}
 .nav-actions{gap:3px}
 .icon-btn{width:40px;height:44px;min-width:40px}
 .cart-trigger{min-height:43px;height:43px;gap:5px;padding:0 10px}
 .menu-trigger{width:42px;min-width:42px}
 .mobile-nav:not([hidden]){padding:8px var(--v19-side) 18px}
 .mobile-nav a{padding:14px 12px;min-height:46px}

 /* Principales slides. Altura homogénea, sin huecos exagerados. */
 .hero,.hero-inner,.hero.is-offer,.hero.is-season,
 .hero.is-offer .hero-inner,.hero.is-season .hero-inner{height:700px;min-height:700px}
 .hero-copy,.hero.is-offer .hero-copy,.hero.is-season .hero-copy{padding-top:36px;padding-bottom:0}
 .hero.is-season .hero-copy{padding-top:48px}
 .hero h1,.hero.is-offer #heroTitle,.hero.is-season #heroTitle{
   font-size:clamp(32px,8.7vw,43px);letter-spacing:-1.7px;line-height:1.09;margin:13px 0 10px
 }
 .hero p,.hero.is-offer #heroDesc,.hero.is-season #heroDesc{font-size:12.5px;line-height:1.5;margin:0 0 10px;max-width:360px}
 .hero.is-offer .hero-conditions{font-size:10px;line-height:1.35;margin:0 0 10px}
 .hero-cta{gap:10px}
 .hero-cta .btn{min-height:44px;padding:10px 16px;font-size:12px}
 .hero-controls,.hero.is-offer .hero-controls,.hero.is-season .hero-controls{margin-top:12px;gap:11px}
 .hero-art,.hero.is-offer .hero-art,.hero.is-season .hero-art{height:314px;width:100%;right:0;bottom:18px}
 .hero.is-season .hero-art{height:336px;bottom:10px}
 .hero-art.is-offer .hero-mascot,.hero-art.is-season .hero-mascot{height:35%;width:29%;right:0;bottom:5%;z-index:8}
 .hero-art.is-season .hero-mascot{height:31%;width:25%;right:1%;bottom:4%}
 .hero-halo{width:min(95vw,362px);height:min(95vw,362px);right:-8px;top:2px}
 .hero.is-season .hero-halo{width:min(94vw,348px);height:min(94vw,348px);right:-4px;top:22px}
 .hero-wave-svg{height:64px;bottom:-1px}
 .hero-promo-orbit{width:89%;height:82%;right:2%;top:10%}
 .hero-promo-box{left:-2%;bottom:10%;width:63%;height:67%;object-position:left bottom}
 .hero-promo-dispenser{right:9%;top:13%;width:35%;height:43%;object-fit:contain}
 .hero-promo-price{right:1%;top:0;width:96px;height:96px;border-width:3px}
 .hero-promo-price strong{font-size:25px}
 .hero-promo-price span{font-size:7px}
 .hero-promo-price small{font-size:8px}
 .hero-promo-burst{right:21%;bottom:36%;font-size:9px;padding:5px 8px}
 .hero-promo-mini,.hero-art.is-offer .hero-promo-mini{bottom:14%;left:4%;max-width:78%;font-size:8px;white-space:normal}
 .hero-art.is-season .season-cleaning-kit{left:-2%;bottom:9%;width:71%;height:46%;object-position:left bottom}
 .hero-art.is-season .season-pan-foil{right:3%;top:16%;width:42%;height:35%}
 .hero-art.is-season .season-pan-metal{right:5%;bottom:20%;width:24%;height:29%}
 .hero-art.is-season .season-art-orbit{inset:20% 6% 6% 6%}
 .hero-art.is-season .season-mini-label{top:8%;right:5%;font-size:8.5px;padding:8px 10px}

 .trust-grid{padding:8px 0 16px}
 .trust-grid>div{padding:11px 6px}
 .categories-section{padding:51px 0 58px}
 .categories-grid{gap:14px}
 .categories-grid>.category-card.v15-category{
   grid-column:auto;min-height:240px;border-radius:26px;padding:20px 19px;
 }
 .category-card .cat-copy{max-width:59%}
 .category-card .cat-copy strong,.category-card.cat-chem .cat-copy strong{font-size:clamp(25px,7.5vw,31px)}
 .category-card .cat-small{font-size:9px;letter-spacing:1px}
 .category-card .cat-discover{font-size:11px;gap:8px;padding-top:10px}
 .category-card .cat-discover>span{width:30px;height:30px}
 .cat-clean .v19-escobas{right:1%;top:11%;width:44%;height:54%}
 .cat-clean .v19-cepillo{right:36%;bottom:3%;width:25%;height:31%}
 .cat-clean .v19-mechudo{right:0%;bottom:2%;width:36%;height:59%}
 .cat-home .v19-jerga{right:27%;bottom:4%;width:41%;height:46%}
 .cat-home .v19-fibra{right:5%;top:9%;width:28%;height:68%}
 .cat-home .v19-carrusel{right:30%;top:8%;width:20%;height:58%}
 .cat-chem .v19-raid{right:36%;bottom:5%;width:17%;height:76%}
 .cat-chem .v19-pledge{right:17%;bottom:4%;width:18%;height:72%}
 .cat-chem .v19-byebac{right:1%;bottom:4%;width:20%;height:48%}
 .cat-plastic .v19-bote{right:43%;bottom:4%;width:22%;height:70%}
 .cat-plastic .v19-cubeta{right:19%;bottom:3%;width:30%;height:49%}
 .cat-plastic .v19-banco{right:1%;bottom:3%;width:26%;height:67%}
 .cat-inst .v19-dispensador{right:51%;bottom:7%;width:18%;height:62%}
 .cat-inst .v19-marli{right:19%;bottom:13%;width:37%;height:43%}
 .cat-inst .v19-kleenex{right:7%;bottom:4%;width:21%;height:24%}
 .cat-inst .v19-senal{right:1%;bottom:12%;width:16%;height:63%}

 /* Carrito/catálogo en móvil: imágenes enteras, toques de 44px y desplazamiento horizontal cómodo. */
 .product-image img:not(.vector-fallback){object-fit:contain!important;max-height:91%;}
 .product-card{scroll-snap-align:start}
 .qty-btn,.heart-btn,.unit-chip{min-height:40px}
 .filters{scroll-padding-left:12px;-webkit-overflow-scrolling:touch}
 .floating-wa{bottom:max(16px,env(safe-area-inset-bottom));right:15px}
 .back-top{bottom:calc(80px + env(safe-area-inset-bottom))}
 .footer-bottom{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
}
@media(max-width:380px){
 .brand-logo-nav{width:91px}
 .cart-label{display:none}
 .cart-trigger{min-width:52px;justify-content:center;padding:0 7px}
 .category-card .cat-copy{max-width:60%}
 .categories-grid>.category-card.v15-category{min-height:229px}
 .hero,.hero-inner,.hero.is-offer,.hero.is-season,.hero.is-offer .hero-inner,.hero.is-season .hero-inner{height:690px;min-height:690px}
 .hero-art,.hero.is-offer .hero-art,.hero.is-season .hero-art{height:292px;bottom:17px}
 .hero.is-season .hero-copy{padding-top:42px}
 .hero.is-season .hero-art{height:310px;bottom:10px}
 .hero.is-season .hero-halo{width:min(95vw,332px);height:min(95vw,332px);top:26px;right:-2px}
 .hero.is-season .season-cleaning-kit{left:-3%;bottom:9%;width:73%;height:45%}
 .hero.is-season .season-pan-foil{right:3%;top:18%;width:42%;height:34%}
 .hero.is-season .season-pan-metal{right:4%;bottom:19%;width:25%;height:28%}
 .hero .hero-text-link{font-size:10px}
 .hero-cta{gap:8px}
 .hero-cta .btn{font-size:11px;padding:10px 13px}
}
@media(prefers-reduced-motion:reduce){
 .category-card.v15-category .v19-item,
 .category-card.v15-category,
 .hero-promo-art *, .hero-season-art *{transition:none!important;animation:none!important;transform:none!important}
}

/* V19 · último ajuste de composición: evitar que los productos invadan títulos. */
@media(min-width:891px){
 .cat-clean .v19-escobas{right:0%;top:5%;width:44%;height:58%}
 .cat-clean .v19-mechudo{right:-1%;bottom:2%;width:34%;height:53%}
 .cat-clean .v19-cepillo{right:27%;bottom:2%;width:25%;height:30%}
 .cat-home .v19-jerga{right:13%;bottom:2%;width:39%;height:44%}
 .cat-home .v19-carrusel{right:29%;top:8%;width:16%;height:60%}
 .cat-home .v19-fibra{right:4%;top:12%;width:25%;height:66%}
 .cat-plastic .v19-bote{right:42%;bottom:3%;width:23%;height:73%}
 .cat-plastic .v19-cubeta{right:22%;bottom:3%;width:27%;height:51%}
 .cat-plastic .v19-banco{right:0%;bottom:3%;width:28%;height:77%}
 .cat-inst .v19-dispensador{right:34%;bottom:4%;width:20%;height:65%}
 .cat-inst .v19-marli{right:17%;bottom:12%;width:33%;height:42%}
 .cat-inst .v19-kleenex{right:6%;bottom:4%;width:21%;height:22%}
 .cat-inst .v19-senal{right:0%;bottom:9%;width:14%;height:64%}
}
@media(max-width:620px){
 /* Jerga libre del botón 'Explorar categoría' sin perder las tres fotos. */
 .cat-home .v19-jerga{right:18%;width:37%;height:43%}
}
