/* CEMEAG · Galerías automáticas */
.cmg{--g:#107C35;--n:#00192B;--gold:#F2B705;--mut:#5d6b5f;--hf:"Barlow Condensed","Arial Narrow",sans-serif;
  display:grid;gap:26px;margin:24px 0 8px}
.cmg-count{margin:0;justify-self:start;font:600 14px/1 "Source Sans 3","Segoe UI",Roboto,Arial,sans-serif;color:var(--g);
  background:#eef7f0;border-radius:999px;padding:8px 14px}
.cmg-set{display:grid;gap:12px;min-width:0}
.cmg-title{margin:0;font:700 24px/1.1 var(--hf);color:var(--n);display:flex;align-items:baseline;gap:8px;text-wrap:balance}
.cmg-title small{font:600 14px var(--hf);color:var(--mut)}
.cmg-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.cmg-grid li{margin:0;padding:0;min-width:0}
.cmg-grid li[hidden]{display:none!important}
.cmg-a{display:block;aspect-ratio:1/1;overflow:hidden;border-radius:14px;background:#e9efe6;outline-offset:3px}
.cmg-a img{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover;border-radius:0!important;transition:transform .35s ease}
.cmg-a:hover img{transform:scale(1.04)}
.cmg .cmg-btn,.cmg .cmg-btn:hover,.cmg .cmg-btn:focus{justify-self:center;display:inline-flex;align-items:center;justify-content:center;
  font:700 16px/1.1 var(--hf);letter-spacing:.06em;text-transform:uppercase;border:0;border-radius:11px;padding:14px 26px;
  background:var(--gold);color:var(--n);cursor:pointer;box-shadow:none}
.cmg .cmg-btn:hover{filter:brightness(.96)}
@media (max-width:1024px){.cmg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:767px){
  .cmg{gap:20px;margin-top:18px}
  .cmg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .cmg-a{border-radius:12px}
  .cmg-title{font-size:21px}
  .cmg .cmg-btn{justify-self:stretch;width:100%}
}

/* Visor de fotos */
.cmg-lb{position:fixed;inset:0;z-index:100000;background:rgba(0,12,20,.96);display:flex;align-items:center;justify-content:center;
  touch-action:pan-y;-webkit-user-select:none;user-select:none}
.cmg-lb[hidden]{display:none!important}
.cmg-lb img{max-width:100vw;max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px);object-fit:contain;display:block;transition:opacity .2s}
.cmg-lb img.is-loading{opacity:.25}
.cmg-lb .cmg-lb-b,.cmg-lb .cmg-lb-b:hover,.cmg-lb .cmg-lb-b:focus{position:absolute;width:48px;height:48px;border-radius:50%;border:0;padding:0;
  background:rgba(255,255,255,.14);color:#fff;font:400 30px/48px Arial,sans-serif;text-align:center;cursor:pointer;box-shadow:none}
.cmg-lb .cmg-lb-b:hover{background:rgba(255,255,255,.26)}
.cmg-lb .cmg-x{top:calc(14px + env(safe-area-inset-top,0px));right:14px}
.cmg-lb .cmg-prev{left:14px;top:50%;transform:translateY(-50%)}
.cmg-lb .cmg-next{right:14px;top:50%;transform:translateY(-50%)}
.cmg-lb-n{position:absolute;top:calc(26px + env(safe-area-inset-top,0px));left:18px;color:#fff;font:600 15px/1 "Source Sans 3",Arial,sans-serif;opacity:.85;font-variant-numeric:tabular-nums}
.cmg-lb-cap{position:absolute;left:16px;right:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px));margin:0;text-align:center;color:#fff;
  font:400 15px/1.4 "Source Sans 3",Arial,sans-serif;opacity:.9}
@media (max-width:767px){
  .cmg-lb .cmg-prev,.cmg-lb .cmg-next{top:auto;transform:none;bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  .cmg-lb-cap{bottom:calc(74px + env(safe-area-inset-bottom,0px))}
}
html.cmg-lock,html.cmg-lock body{overflow:hidden}

/* ---------- Página de edición: póster + reseña ---------- */
.cmg-intro{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:32px;align-items:start}
.cmg-intro.no-poster{grid-template-columns:minmax(0,1fr);max-width:760px}
.cmg-poster .cmg-a{aspect-ratio:auto;border-radius:16px;background:none;box-shadow:0 14px 34px rgba(0,25,43,.18)}
.cmg-poster .cmg-a img{height:auto!important;object-fit:contain}
.cmg-poster .cmg-a:hover img{transform:none}
.cmg-resena{font:400 17px/1.65 "Source Sans 3","Segoe UI",Roboto,Arial,sans-serif;color:#1F2A22;display:grid;gap:4px;min-width:0}
.cmg-resena p{margin:0 0 14px}
.cmg-resena ul,.cmg-resena ol{margin:0 0 14px 20px}
.cmg-fotos{display:grid;gap:14px}
.cmg-h2{margin:0;font:700 28px/1.1 var(--hf);color:var(--n);display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.cmg-h2 .cmg-count{font-size:14px}
.cmg-soon{margin:0;font-style:italic;color:var(--mut)}

/* ---------- Botones de compartir ---------- */
.cms{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.cms-l{font:700 14px/1 "Barlow Condensed","Arial Narrow",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#5d6b5f;margin-right:4px}
.cms .cms-b,.cms .cms-b:hover,.cms .cms-b:focus{width:42px;height:42px;border-radius:50%;display:inline-grid;place-items:center;border:0;padding:0;color:#fff;cursor:pointer;box-shadow:none;text-decoration:none}
.cms .cms-b svg{width:20px;height:20px}
.cms .cms-wa{background:#25D366}.cms .cms-fb{background:#1877F2}.cms .cms-x{background:#111}.cms .cms-ln{background:#107C35}
.cms .cms-b:hover{filter:brightness(1.08);transform:translateY(-1px)}
.cms .cms-ln.is-ok{background:#F2B705;color:#00192B}

/* ---------- Carrusel de noticias ---------- */
.cmf{display:grid;gap:10px;margin:0}
.cmf-main{position:relative;border-radius:16px;overflow:hidden;background:#0d1b14}
.cmf-main .cmf-slide{aspect-ratio:4/3;border-radius:0;background:#0d1b14}
.cmf-main .cmf-slide[hidden]{display:none!important}
.cmf-main .cmf-slide img{object-fit:contain}
.cmf-main .cmf-slide:hover img{transform:none}
.cmf .cmf-nav,.cmf .cmf-nav:hover,.cmf .cmf-nav:focus{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:0;padding:0;
  background:rgba(0,25,43,.62);color:#fff;font:400 30px/42px Arial,sans-serif;text-align:center;cursor:pointer;box-shadow:none}
.cmf .cmf-nav:hover{background:rgba(0,25,43,.85)}
.cmf .cmf-prev{left:10px}.cmf .cmf-next{right:10px}
.cmf-n{position:absolute;right:10px;bottom:10px;background:rgba(0,25,43,.7);color:#fff;font:600 13px/1 "Source Sans 3",Arial,sans-serif;padding:6px 10px;border-radius:99px;font-variant-numeric:tabular-nums;pointer-events:none}
.cmf-thumbs{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
.cmf .cmf-t,.cmf .cmf-t:hover,.cmf .cmf-t:focus{flex:0 0 72px;height:72px;border-radius:10px;overflow:hidden;padding:0;border:2px solid transparent;background:#e9efe6;cursor:pointer;opacity:.6;box-shadow:none}
.cmf .cmf-t.is-on{border-color:#107C35;opacity:1}
.cmf .cmf-t img{width:100%;height:100%;object-fit:cover;display:block}

@media (max-width:767px){
  .cmg-intro{grid-template-columns:minmax(0,1fr);gap:20px}
  .cmg-poster{max-width:420px;width:100%;justify-self:center}
  .cmg-resena{font-size:16px}
  .cmg-h2{font-size:24px}
  .cmf-main{border-radius:14px}
  .cmf .cmf-t{flex-basis:60px;height:60px}
  .cmf .cmf-nav{width:38px;height:38px;line-height:36px;font-size:26px}
}

/* Zoom del visor */
.cmg-lb{overflow:hidden;touch-action:none}
.cmg-lb-th{touch-action:pan-x}
.cmg-lb img{touch-action:none;cursor:zoom-in;will-change:transform;user-select:none;-webkit-user-drag:none}
.cmg-lb.is-zoom img{cursor:grab;position:relative;z-index:1}
.cmg-lb.is-zoom img:active{cursor:grabbing}
.cmg-lb .cmg-zm{top:calc(14px + env(safe-area-inset-top,0px));right:130px}
.cmg-lb .cmg-zm.is-on{background:var(--gold,#F2B705)!important;color:#00192B!important}
.cmg-lb .cmg-zm.is-on .zm-v{display:none}
.cmg-lb .cmg-lb-b{z-index:2}
.cmg-lb-hint{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:2;background:rgba(0,0,0,.6);color:#fff;padding:8px 14px;border-radius:999px;font:600 13px/1.2 "Source Sans 3",Arial,sans-serif;opacity:0;pointer-events:none;transition:opacity .25s;white-space:nowrap}
.cmg-lb.is-zoom .cmg-lb-hint{opacity:1}
.cmg-lb.is-zoom .cmg-lb-cap,.cmg-lb.is-zoom .cmg-lb-th,.cmg-lb.is-zoom .cmg-prev,.cmg-lb.is-zoom .cmg-next{opacity:0;pointer-events:none}
.cmg-lb .cmg-lb-cap,.cmg-lb .cmg-lb-th,.cmg-lb .cmg-prev,.cmg-lb .cmg-next{transition:opacity .2s}
@media (max-width:767px){.cmg-lb .cmg-zm{right:126px}.cmg-lb-hint{font-size:12px}}

/* ---------- Visor: miniaturas y presentación ---------- */
.cmg-lb .cmg-play{top:calc(14px + env(safe-area-inset-top,0px));right:72px;font-size:18px!important}
.cmg-lb .cmg-play.is-on{background:var(--gold,#F2B705)!important;color:#00192B!important}
.cmg-lb .cmg-play[hidden],.cmg-lb .cmg-lb-th[hidden]{display:none!important}
.cmg-lb-th{position:absolute;left:0;right:0;bottom:calc(10px + env(safe-area-inset-bottom,0px));display:flex;gap:6px;overflow-x:auto;padding:0 16px;justify-content:safe center;scrollbar-width:none}
.cmg-lb-th::-webkit-scrollbar{display:none}
.cmg-lb .cmg-lb-t,.cmg-lb .cmg-lb-t:hover,.cmg-lb .cmg-lb-t:focus{flex:0 0 56px;height:42px;border:2px solid transparent;border-radius:7px;overflow:hidden;padding:0;background:#222;opacity:.5;cursor:pointer;box-shadow:none}
.cmg-lb .cmg-lb-t.is-on{opacity:1;border-color:#F2B705}
.cmg-lb .cmg-lb-t img{width:100%;height:100%;object-fit:cover;display:block}
.cmg-lb:has(.cmg-lb-th:not([hidden])) img{max-height:calc(100vh - 190px);max-height:calc(100dvh - 190px)}
.cmg-lb:has(.cmg-lb-th:not([hidden])) .cmg-lb-cap{bottom:calc(66px + env(safe-area-inset-bottom,0px))}

@media (max-width:767px){
  .cmg-lb .cmg-play{right:70px}
  .cmg-lb .cmg-lb-t{flex-basis:46px;height:36px}
  .cmg-lb:has(.cmg-lb-th:not([hidden])) .cmg-prev,.cmg-lb:has(.cmg-lb-th:not([hidden])) .cmg-next{bottom:calc(62px + env(safe-area-inset-bottom,0px))}
  .cmg-lb:has(.cmg-lb-th:not([hidden])) .cmg-lb-cap{bottom:calc(120px + env(safe-area-inset-bottom,0px))}
}

@media (max-width:767px){.cmf-thumbs{scrollbar-width:none}.cmf-thumbs::-webkit-scrollbar{display:none}}
