/* Editorial masthead, with a separate composition for narrow screens. */
header.mg-headwidget .mg-nav-widget-area-back.back-img {
  background-color:#fff !important;
  background-image:url('assets/cabecera-revisada-escritorio.png') !important;
  background-size:cover !important;
  background-position:center center !important;
  min-height:255px;
}
header.mg-headwidget .mg-nav-widget-area-back .overlay { background:transparent !important; }
/* The desktop artwork contains its own logo. The theme's logo and tinted
   inner layer would duplicate it and obscure the portrait. */
@media (min-width:768px) {
  header.mg-headwidget .mg-nav-widget-area-back .navbar-brand { display:none !important; }
  header.mg-headwidget .mg-nav-widget-area-back .inner {
    background:transparent !important;
    box-shadow:none !important;
  }
}
header.mg-headwidget .mg-nav-widget-area-back .custom-logo {
  width:88px !important; height:88px !important; max-width:88px !important;
  object-fit:contain;
}
header.mg-headwidget .mg-head-detail { background:#29315f !important; }
header.mg-headwidget .navbar-wp { background:rgba(65,55,127,.95) !important; }

/* Awarded report and its existing three embeds. */
footer > .overlay {
  background:linear-gradient(155deg,#22294c 0%,#302d57 60%,#453456 100%) !important;
}
footer .unimedios-award-series { padding:4px 0 18px; }
footer .unimedios-series-intro { max-width:900px; margin:0 auto 28px; text-align:center; color:#f7f4fb; }
footer .unimedios-series-label {
  display:inline-block; color:#f1bad0; font-size:12px; line-height:1.4;
  letter-spacing:.14em; font-weight:800; margin-bottom:12px;
}
footer .unimedios-series-intro h2 { color:#fff !important; font-size:clamp(24px,3vw,37px); line-height:1.18; margin:0 0 14px; }
footer .unimedios-series-intro p { max-width:740px; margin:0 auto 12px; color:#f0ecf4; line-height:1.55; font-size:16px; }
footer .unimedios-series-intro a { color:#ffe0eb !important; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
footer .unimedios-award-series .row { align-items:stretch; }
footer .unimedios-award-series .mg-widget { display:flex; flex-direction:column; margin-bottom:22px; }
footer .unimedios-award-series .mg-widget figure {
  width:100%; margin:0; overflow:hidden; border-radius:9px 9px 0 0;
  background:#f5f2f8; box-shadow:0 12px 30px rgba(12,16,38,.18);
}
footer .unimedios-award-series .wp-block-embed__wrapper { width:100%; }
footer .unimedios-award-series iframe { display:block; width:100%; max-width:100%; height:100%; border:0; }
footer .mg-footer-widget-area.unimedios-award-series .unimedios-series-caption {
  flex:1; margin:0; padding:14px 16px; border-radius:0 0 9px 9px;
  background:#f5f2f8 !important; color:#242543 !important;
  font-weight:700; line-height:1.35; font-size:14px;
  box-shadow:0 12px 30px rgba(12,16,38,.18);
}
@media (max-width:767px) {
  footer .unimedios-series-intro { margin-bottom:24px; padding:0 8px; }
  footer .unimedios-award-series .mg-widget { margin-bottom:18px; }
  /* Brand and artwork have their own space so the desktop banner cannot be cropped. */
  header.mg-headwidget .mg-head-detail,
  .mg-latest-news-sec { display:none !important; }
  header.mg-headwidget .mg-nav-widget-area-back.back-img {
    position:relative; height:calc(84px + 47.333vw) !important;
    min-height:calc(84px + 47.333vw) !important;
    background-image:url('assets/cabecera-revisada-movil-arte.png') !important;
    background-size:100% auto !important;
    background-position:center bottom !important;
    background-repeat:no-repeat !important;
  }
  header.mg-headwidget .mg-nav-widget-area-back.back-img::after {
    content:none !important;
  }
  header.mg-headwidget .mg-nav-widget-area-back .overlay {
    height:calc(84px + 47.333vw) !important;
    min-height:calc(84px + 47.333vw) !important;
  }
  header.mg-headwidget .mg-nav-widget-area-back .inner,
  header.mg-headwidget .mg-nav-widget-area-back .mg-nav-widget-area {
    height:84px !important; min-height:84px !important;
  }
  header.mg-headwidget .mg-nav-widget-area-back .inner {
    padding:8px 0 !important; background:#fff !important;
    border-bottom:3px solid #9a2d49;
    box-sizing:border-box;
  }
  header.mg-headwidget .mg-nav-widget-area-back .navbar-header {
    display:flex !important; align-items:flex-start; justify-content:flex-start; gap:12px;
    position:relative; min-height:64px; width:100%; padding:0 12px;
  }
  header.mg-headwidget .mg-nav-widget-area-back .navbar-brand {
    float:none !important; display:block !important; flex:0 0 61px;
    width:61px !important; height:61px !important; padding:0 !important; margin:0 !important;
  }
  header.mg-headwidget .mg-nav-widget-area-back .custom-logo {
    display:block; width:61px !important; height:61px !important;
    max-width:61px !important; object-fit:contain;
  }
  header.mg-headwidget .mg-nav-widget-area-back .navbar-header::after {
    content:'UNIMEDIOS'; color:#182640; font-family:Arial,Helvetica,sans-serif;
    font-size:clamp(24px,7.2vw,32px); line-height:1.12;
    font-weight:900; letter-spacing:.015em; padding-top:5px;
  }
  header.mg-headwidget .mg-nav-widget-area-back .navbar-header::before {
    content:'Tu conexión con la noticia'; position:absolute;
    left:85px; top:43px; color:#596783;
    font-family:Arial,Helvetica,sans-serif; font-size:clamp(12px,3.5vw,15px);
    line-height:1.25; white-space:nowrap;
  }
  header.mg-headwidget .mg-menu-full .navbar-wp { min-height:50px; }
  header.mg-headwidget .mg-menu-full .m-header { min-height:50px; }
}
