/* ALZATE MARKET V6.155 — Un solo tratamiento vertical en Galería y Catálogo.
   Marco 9:16 (referencia 1080 x 1920); nunca deformar la proporción original.
   Para infografías se ve toda la imagen; fondo ampliado evita franjas negras. */
:root { --alzate-portrait-ratio: 9 / 16; }

/* Visor de ARCHIVOS y visor de los archivos VINCULADOS del producto. */
.gallery-archive-viewer-v6136,.gallery-archive-frame-v6136{
 width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;
 background:#211621!important;overflow:hidden!important;
}
.gallery-archive-stage-v6136{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;
 background-position:center!important;background-size:cover!important;
 background-repeat:no-repeat!important;
}
.gallery-archive-stage-v6136::before{
 content:'';position:absolute;inset:0;background:rgba(25,14,25,.35);
 backdrop-filter:blur(23px);pointer-events:none;
}
.gallery-archive-stage-v6136>img,.gallery-archive-stage-v6136>video,
.gallery-archive-stage-v6136>.gallery-archive-document-v6150{
 position:relative!important;z-index:1!important;display:block!important;
 width:min(100vw,calc(100dvh * 9 / 16))!important;height:100dvh!important;
 max-width:100vw!important;max-height:100dvh!important;
 border:0!important;object-position:center!important;
}
/* Imagen: preservar textos y diagramas. Video: ocupar marco por recorte, no estirar. */
.gallery-archive-stage-v6136>img{object-fit:contain!important;background:#ffffff!important}
.gallery-archive-stage-v6136>video{object-fit:cover!important;background:#211621!important}
.gallery-archive-stage-v6136>audio{position:relative!important;z-index:3!important;width:calc(100% - 30px)!important;max-width:470px!important}
.gallery-archive-audio-mark-v6136{position:relative!important;z-index:2!important}
.gallery-archive-stage-v6136[data-current-kind="audio"]{
 background:radial-gradient(circle at center,#502043 0%,#190e1a 80%)!important;
 flex-direction:column!important;
}
.gallery-archive-stage-v6136[data-current-kind="audio"]::before{display:none!important}
.gallery-archive-header-v6136{z-index:30!important}
.gallery-archive-nav-v6136{z-index:20!important}

/* Miniaturas 9:16 en ambas columnas, audio centrado con controles utilizables. */
body.gallery-page #mediaGrid>.card>.prev,
body.gallery-page #galleryGroups .gallery-group-grid>.card[data-linked="1"]>.prev{
 width:100%!important;aspect-ratio:9 / 16!important;height:auto!important;overflow:hidden!important;
 background:#fff0f7!important;
}
body.gallery-page #mediaGrid>.card>.prev :is(img,video),
body.gallery-page #galleryGroups .gallery-group-grid>.card[data-linked="1"]>.prev :is(img,video){
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 object-fit:cover!important;object-position:center!important;border:0!important;
}
body.gallery-page #mediaGrid>.card[data-kind="audio"]>.prev,
body.gallery-page #galleryGroups .gallery-group-grid>.card[data-kind="audio"]>.prev{
 background:radial-gradient(circle at 50% 47%,#fce7f3,#f9d2e6)!important;
}
body.gallery-page #mediaGrid>.card .gallery-inline-video-v6154{
 background:#221622!important;
}

/* GRABAR y DETENER: dentro del producto, sin botones montados unos sobre otros. */
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108{
 position:relative!important;display:grid!important;
 grid-template-columns:minmax(0,1fr) 48px!important;
 grid-auto-rows:auto!important;align-items:start!important;
 column-gap:12px!important;row-gap:10px!important;
 width:100%!important;min-width:0!important;padding:8px 0 10px!important;
 box-sizing:border-box!important;
}
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108>.gallery-group-mic-v6149{
 position:relative!important;grid-column:1!important;grid-row:1!important;
 justify-self:start!important;width:46px!important;height:46px!important;
 min-width:46px!important;min-height:46px!important;z-index:1!important;
}
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108>.gallery-group-camera-v698{
 position:relative!important;grid-column:2!important;grid-row:1!important;
 justify-self:end!important;width:46px!important;height:46px!important;
 min-width:46px!important;min-height:46px!important;
}
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108>.gallery-group-voice-slot-v697{
 position:relative!important;grid-row:2!important;grid-column:1/-1!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
}
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108 .gallery-voice-controls-v696{
 position:static!important;inset:auto!important;display:block!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 background:transparent!important;padding:0!important;
}
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108 #galleryVoiceActions:not([hidden]){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:8px!important;width:100%!important;justify-content:stretch!important;
}
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108 #galleryVoiceActions button{
 margin:0!important;min-width:0!important;max-width:100%!important;
 padding:9px 5px!important;min-height:42px!important;
 font-size:clamp(11px,2.7vw,13px)!important;white-space:normal!important;
}
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108 #galleryVoiceStatus,
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108 #galleryVoiceList{
 position:relative!important;grid-column:1/-1!important;width:100%!important;
}
body.gallery-page #galleryGroups .gallery-group-media-tools-v6108 #galleryVoiceFloat{display:none!important}

/* Catálogo: no permitir que el video o su capturador intercepten Favoritos / Carrito / compra. */
body.lightbox-open #lightboxStage{
 background-size:cover!important;background-position:center!important;isolation:isolate!important;
}
body.lightbox-open #lightboxStage::before{
 content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
 background:rgba(0,0,0,.25);backdrop-filter:blur(18px);
}
body.lightbox-open #lightboxStage .lightbox-track,
body.lightbox-open #lightboxStage .lightbox-media-surface{z-index:3!important}
body.lightbox-open #lightboxStage .lightbox-img{
 object-fit:contain!important;object-position:center!important;
 background:transparent!important;
}
body.lightbox-open #lightboxStage .lightbox-favorite{
 z-index:100!important;pointer-events:auto!important;touch-action:manipulation!important;
}
body.lightbox-open #lightboxStage .promo-circle-v6153{z-index:90!important}
body.lightbox-open #lightboxStage .lightbox-media-surface.is-video-v6142 .catalog-media-frame-v6142 video{
 object-fit:cover!important;object-position:center!important;
}
body.lightbox-open #lightboxActions{
 position:fixed!important;z-index:200!important;pointer-events:auto!important;
}
body.lightbox-open #lightboxActions :is(button,input){pointer-events:auto!important;touch-action:manipulation!important}
body.lightbox-open #lightboxAdd{opacity:1!important;visibility:visible!important}
body.lightbox-open #lightboxWa{opacity:1!important;visibility:visible!important}
