/* Galería de proyectos C-QBO | 30-11-2026 | sin bibliotecas externas */
.cq-gallery-section{padding-top:100px;padding-bottom:112px;background:#f3f6f8!important;border-top:1px solid #e5ebef}
.cq-gallery-section .section-heading{margin-bottom:35px}
.cq-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.cq-gallery-card{background:#fff;border-radius:15px;overflow:hidden;min-width:0;box-shadow:0 14px 30px rgba(6,26,40,.075);border:1px solid #e0e8ec;transition:transform .25s ease,box-shadow .25s ease}
@media(hover:hover){.cq-gallery-card:hover{transform:translateY(-4px);box-shadow:0 23px 38px rgba(6,26,40,.14)}}
.cq-gallery-card-top{padding:25px 26px 20px;min-height:132px}
.cq-gallery-tag{font-size:11px;font-weight:800;color:#0c5fc7;letter-spacing:1.5px}
.cq-gallery-card-top h3{color:#071d2c;font-size:clamp(19px,1.7vw,24px);line-height:1.15;margin:8px 0 8px;letter-spacing:-.3px}
.cq-gallery-card-top p{color:#5c707d;font-size:13px;margin:0}
.cq-gallery-stage{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y;outline-offset:-3px;background:#071d2c}
.cq-gallery-stage::-webkit-scrollbar{display:none}
.cq-gallery-track{display:flex;align-items:stretch;width:100%;height:300px}
.cq-gallery-slide{flex:0 0 100%;min-width:0;min-height:0;scroll-snap-align:start;scroll-snap-stop:always;position:relative;margin:0;display:flex;align-items:center;justify-content:center}
.cq-gallery-zoom{display:flex;align-items:center;justify-content:center;border:0;width:100%;height:100%;margin:0;padding:0;background:linear-gradient(145deg,#102e43,#091822);cursor:zoom-in;position:relative;overflow:hidden}
.cq-gallery-zoom img{width:100%;height:100%;object-fit:contain;display:block;image-orientation:from-image;filter:none}
.cq-gallery-zoom-hint{position:absolute;bottom:15px;right:15px;padding:7px 11px;color:#fff;background:rgba(5,25,38,.75);border:1px solid rgba(255,255,255,.15);font-size:12px;letter-spacing:.2px;border-radius:5px;opacity:0;transform:translateY(3px);transition:.2s;pointer-events:none}
@media(hover:hover){.cq-gallery-zoom:hover .cq-gallery-zoom-hint{opacity:1;transform:translateY(0)}}
.cq-gallery-controls{min-height:68px;display:flex;align-items:center;gap:10px;justify-content:space-between;padding:14px 20px;background:#fff}
.cq-gallery-position{font-size:13px;font-variant-numeric:tabular-nums;color:#122e40;font-weight:750;min-width:48px}
.cq-gallery-separator{color:#99aab4;margin:0 2px}
.cq-gallery-dots{display:flex;justify-content:center;align-items:center;gap:6px;flex:1}
.cq-gallery-dots button{width:7px;height:7px;background:#becbd3;border:none;border-radius:50%;padding:0;cursor:pointer;transition:width .2s ease,background .2s ease}
.cq-gallery-dots button[aria-current="true"]{width:22px;border-radius:8px;background:#0c5fc7}
.cq-gallery-buttons{display:flex;gap:6px}
.cq-gallery-buttons button{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:#eff4f7;border:1px solid #dce7ed;color:#09293d;cursor:pointer;transition:.15s;font-size:17px}
.cq-gallery-buttons button:hover{background:#0c5fc7;color:#fff;border-color:#0c5fc7}
.cq-gallery-buttons button:focus-visible,.cq-gallery-dots button:focus-visible,.cq-gallery-zoom:focus-visible{outline:3px solid #e88c4a;outline-offset:2px}
.cq-lightbox{padding:0;border:none;max-width:min(96vw,1350px);max-height:95vh;width:min(96vw,1350px);background:#071522;color:#fff;box-shadow:0 28px 100px #0008;border-radius:12px;overflow:hidden}
.cq-lightbox::backdrop{background:rgba(1,12,20,.87);backdrop-filter:blur(6px)}
.cq-lightbox-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#0b2434;font-size:14px;font-weight:600}
.cq-lightbox-bar button{border:1px solid #ffffff44;background:#ffffff12;color:#fff;border-radius:50%;width:36px;height:36px;cursor:pointer}
.cq-lightbox-body{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;padding:12px}
.cq-lightbox-body img{width:100%;max-height:calc(92vh - 132px);object-fit:contain;display:block;margin:auto}
.cq-lightbox-body button{background:#ffffff20;color:#fff;border:1px solid #ffffff30;border-radius:50%;width:42px;height:42px;cursor:pointer;font-size:22px}
.cq-lightbox-help{text-align:center;display:block;padding:0 10px 13px;font-size:11px;color:#c1d3db}
@media(max-width:1060px){.cq-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cq-gallery-track{height:310px}}
@media(max-width:660px){.cq-gallery-section{padding:68px 0 75px}.cq-gallery-grid{grid-template-columns:1fr;gap:20px}.cq-gallery-card-top{min-height:0;padding:21px 23px 15px}.cq-gallery-track{height:270px}.cq-lightbox-body{grid-template-columns:34px minmax(0,1fr) 34px;gap:4px;padding:8px}.cq-lightbox-body button{width:34px;height:34px}.cq-lightbox-bar{font-size:12px}}
@media(prefers-reduced-motion:reduce){.cq-gallery-card,.cq-gallery-dots button,.cq-gallery-zoom-hint{transition:none!important}.cq-gallery-stage{scroll-behavior:auto!important}}

/* C-QBO · Auditoría de alineación de galerías — diciembre 2026 */
.cq-gallery-grid{align-items:stretch!important;}
.cq-gallery-grid>.cq-gallery-card{display:flex;flex-direction:column;height:100%;}
.cq-gallery-card-top{height:176px;min-height:176px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-start;}
.cq-gallery-card-top h3{margin-bottom:8px;}
.cq-gallery-card-top p{margin-top:auto;}
.cq-gallery-card .cq-gallery-stage{width:100%;flex:none;}
.cq-gallery-card .cq-gallery-track{height:300px;}
.cq-gallery-card .cq-gallery-slide,.cq-gallery-card .cq-gallery-zoom{height:100%;}
.cq-gallery-card .cq-gallery-zoom{display:flex;align-items:center;justify-content:center;background:#0b2637;}
.cq-gallery-card .cq-gallery-slide img{width:100%;height:100%;object-fit:contain;object-position:center;background:#0b2637;}
.cq-gallery-card .cq-gallery-controls{margin-top:auto;flex:none;min-height:75px;}
@media(max-width:1060px){.cq-gallery-card .cq-gallery-track{height:305px;}}
@media(max-width:660px){
  .cq-gallery-card-top{height:auto;min-height:unset;}
  .cq-gallery-card-top p{margin-top:0;}
  .cq-gallery-card .cq-gallery-track{height:285px;}
}
