/* CARQUBIT V75 · refinamientos exclusivos de promociones · 29-10-2026 */
/* Encabezado: restaurar comportamiento de index, respetando menú móvil */
body>header.main-header{position:sticky!important;top:0!important;z-index:1000!important;transition:background .25s,box-shadow .25s!important}
body>header.main-header .header-inner{height:78px!important;min-height:78px!important;transition:height .28s ease,min-height .28s ease!important}
body>header.main-header .header-logo-img{max-height:45px!important;width:auto!important;max-width:240px!important;transition:max-height .28s ease,max-width .28s ease!important}
body>header.main-header.is-scrolled{background:rgba(10,31,53,.97)!important;box-shadow:0 8px 24px rgba(5,20,39,.18)!important}
body>header.main-header.is-scrolled .header-inner{height:58px!important;min-height:58px!important}
body>header.main-header.is-scrolled .header-logo-img{max-height:34px!important;max-width:190px!important}
/* Dos tarjetas de división: rectangulares y proporcionadas */
.cq-division-tiles{max-width:1080px;margin-left:auto;margin-right:auto;gap:18px!important}
.cq-division-tile{min-height:205px!important;padding:25px 30px!important;border-radius:17px!important}
.cq-division-tile h3{font-size:clamp(19px,2vw,24px)!important;margin:12px 0!important}
.cq-division-tile p{font-size:13px!important;line-height:1.55!important}
/* Solo fotografías más grandes dentro de sus tarjetas */
.cq-featured-grid .cq-product-card .cq-product-image img,.cq-catalog-public .grid .cq-product-card .cq-product-image img{max-height:245px!important;aspect-ratio:1/1!important;padding:5px!important;object-fit:contain!important}
.cq-featured-grid .cq-product-card .cq-product-image .placeholder,.cq-catalog-public .grid .cq-product-card .cq-product-image .placeholder{max-height:245px!important}
/* Cabeceras de ambas divisiones */
.cq-catalog-public .cq-catalog-hero{padding:32px 42px!important;min-height:0!important;border-radius:19px!important;margin-bottom:30px!important}
.cq-catalog-public .cq-catalog-hero h1{font-size:clamp(27px,3vw,40px)!important;line-height:1.16!important;max-width:850px!important;margin:14px 0!important}
.cq-catalog-public .cq-catalog-hero p{font-size:14px!important;line-height:1.6!important;max-width:680px!important;margin:12px 0 19px!important}
.cq-catalog-public .cq-catalog-hero .cq-primary{padding:12px 18px!important}
/* Dashboard y destacados */
.cq-v24-dashboard .cq-v21-welcome{padding:23px 29px!important;min-height:0!important}
.cq-v24-dashboard .cq-v21-welcome h1{font-size:clamp(25px,2.5vw,34px)!important}
.cq-v24-dashboard .cq-feature-admin-callout{padding:13px 18px!important;gap:15px!important;border-radius:13px!important}
.cq-v24-dashboard .cq-feature-admin-callout p{font-size:12px!important;margin:4px 0!important}
.cq-v24-dashboard .cq-feature-admin-callout .btn{padding:10px 15px!important;font-size:12px!important}
.cq-v24-dashboard .v6-quick-card{padding:17px!important;min-height:110px!important;border-radius:14px!important}
.cq-v24-dashboard .v6-quick-card span{font-size:20px!important}
.cq-v24-dashboard .v6-quick-card strong{font-size:13px!important}
.cq-v24-dashboard .v6-quick-card small{font-size:11px!important}
.cq-v24-dashboard .v4-branch{padding:22px 25px!important;min-height:0!important;border-radius:15px!important}
.cq-v24-dashboard .v4-branch h2{font-size:21px!important;margin:9px 0!important}
.cq-v24-dashboard .v4-branch p{font-size:13px!important;margin:8px 0 13px!important}
.cq-v24-dashboard .v4-branch-icon{font-size:19px!important}
.cq-feature-manager{max-width:1080px!important}
.cq-feature-manager .cq-manager-title{padding:17px 22px!important;margin-bottom:16px!important}
.cq-feature-manager .cq-manager-title h1{font-size:clamp(23px,2.7vw,31px)!important}
.cq-feature-manager .panel{padding:18px!important;border-radius:15px!important}
/* Ficha: contenedor y fotografía 10% más compactos */
.cq-product-detail{max-width:1110px!important}
.cq-product-detail .cq-detail-layout{gap:clamp(20px,3vw,43px)!important;padding:clamp(18px,2.3vw,31px)!important}
.cq-product-detail .cq-detail-image{min-height:315px!important}
.cq-product-detail .cq-detail-image #cq-gallery-main{max-height:432px!important;padding:23px!important}
/* V76: restaurar flechas del visor */
@media(max-width:850px){
 body>header.main-header .header-inner{height:68px!important;min-height:68px!important}
 body>header.main-header.is-scrolled .header-inner{height:54px!important;min-height:54px!important}
 body>header.main-header .header-logo-img{max-width:205px!important;max-height:39px!important}
 body>header.main-header.is-scrolled .header-logo-img{max-width:175px!important;max-height:31px!important}
 .cq-division-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .cq-division-tile{padding:19px!important;min-height:190px!important}
 .cq-v24-dashboard .v6-quick{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .cq-v24-dashboard .v6-branches{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}
 .cq-catalog-public .cq-catalog-hero{padding:25px!important}
}
@media(max-width:560px){
 .cq-division-tiles{gap:9px!important}
 .cq-division-tile{padding:14px!important;min-height:170px!important}
 .cq-division-tile h3{font-size:16px!important}
 .cq-division-tile p{font-size:11px!important}
 .cq-featured-grid .cq-product-card .cq-product-image img,.cq-catalog-public .grid .cq-product-card .cq-product-image img{max-height:185px!important;padding:3px!important}
 .cq-catalog-public .cq-catalog-hero{padding:22px 19px!important}
 .cq-catalog-public .cq-catalog-hero h1{font-size:26px!important}
 .cq-v24-dashboard .cq-v21-welcome{padding:20px!important}
 .cq-v24-dashboard .cq-feature-admin-callout{padding:12px!important;flex-direction:column!important;align-items:stretch!important}
 .cq-v24-dashboard .cq-feature-admin-callout .btn{text-align:center!important}
 .cq-v24-dashboard .v6-quick-card{padding:12px!important;min-height:98px!important}
 .cq-v24-dashboard .v4-branch{padding:15px!important}
 .cq-v24-dashboard .v4-branch h2{font-size:16px!important}
 .cq-v24-dashboard .v4-branch p{font-size:11px!important}
 .cq-v24-dashboard .v4-branch strong{font-size:11px!important}
 .cq-v24-dashboard .v4-statbar{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 .cq-v24-dashboard .v4-statbar>div{padding:12px 8px!important}
 .cq-v24-dashboard .v4-statbar span{font-size:10px!important}
 .cq-v24-dashboard .v6-table{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 .cq-product-detail .cq-detail-image{min-height:230px!important}
 .cq-product-detail .cq-detail-image #cq-gallery-main{max-height:315px!important;padding:14px!important}
}
@media(prefers-reduced-motion:reduce){body>header.main-header .header-inner,body>header.main-header .header-logo-img{transition:none!important}}

/* CARQUBIT V76 — galería de producto compacta y controles finos */
@media (min-width: 781px) {
 .cq-product-detail.wrap{width:min(1280px,calc(100% - 52px))!important;max-width:1280px!important}
 .cq-product-detail .cq-detail-layout{grid-template-columns:minmax(0, .80fr) minmax(0, 1.20fr)!important;gap:clamp(20px,2.6vw,34px)!important;align-items:start!important}
 .cq-product-detail .cq-detail-image{width:100%!important;min-height:0!important;aspect-ratio:1/1.04!important;padding:12px!important;gap:8px!important;align-content:center!important;border:1px solid #e5ebf3!important;background:#fff!important;box-shadow:inset 0 1px 8px rgba(19,43,73,.025)!important}
 .cq-product-detail .cq-detail-image>img#cq-gallery-main{height:clamp(280px,29vw,410px)!important;max-height:410px!important;width:100%!important;max-width:100%!important;object-fit:contain!important;padding:5px!important;cursor:grab!important;user-select:none!important;-webkit-user-drag:none!important}
 .cq-product-detail .cq-detail-image>img#cq-gallery-main:active{cursor:grabbing!important}
 .cq-product-detail .cq-gallery-thumbs{margin-top:0!important}
}
.cq-zoom-v2 .cq-zoom-arrow{display:grid!important;visibility:visible!important;opacity:.93!important}
.cq-zoom-v2 .cq-zoom-arrow[hidden]{display:none!important}
.cq-zoom-v2 .cq-zoom-prev{left:5px!important}
.cq-zoom-v2 .cq-zoom-next{right:5px!important}
.cq-zoom-v2 .cq-zoom-stage{touch-action:pan-y;cursor:grab;user-select:none}
.cq-zoom-v2 .cq-zoom-stage.is-dragging{cursor:grabbing}
.cq-zoom-v2 .cq-zoom-photo{user-select:none;-webkit-user-drag:none}
@media(max-width:780px){.cq-product-detail .cq-detail-layout{grid-template-columns:minmax(0,1fr)!important}.cq-product-detail .cq-detail-image{aspect-ratio:auto!important}.cq-product-detail .cq-detail-image>img#cq-gallery-main{cursor:default!important}}

/* V77 — fotografía principal más grande dentro del mismo marco */
@media(min-width:781px){
 .cq-product-detail .cq-detail-image{padding:7px!important;gap:5px!important}
 .cq-product-detail .cq-detail-image>img#cq-gallery-main{
   height:clamp(310px,31vw,440px)!important;
   max-height:440px!important;
   padding:0!important;
   object-fit:contain!important;
 }
 .cq-product-detail .cq-gallery-thumbs{margin-top:0!important}
}
@media(max-width:780px){
 .cq-product-detail .cq-detail-image>img#cq-gallery-main{padding:3px!important}
}
