/* Clinicas mobile layout V1: presentation only, desktop unchanged. */
.clinicas-mobile-nav,.clinicas-mobile-backdrop,.clinicas-mobile-drawer{display:none}
@media(max-width:900px){
  html{scroll-padding-top:112px}
  body{overflow-x:hidden}
  .goes-style-topbar{position:sticky!important;top:0;z-index:1200!important;padding:6px 10px!important;min-height:51px;align-items:center!important;gap:4px!important}
  .goes-style-left{width:auto!important;flex:1 1 auto!important;min-width:0!important;flex-wrap:nowrap!important;gap:5px!important}
  .goes-style-logo{width:35px!important;height:35px!important;flex:0 0 35px!important}
  .goes-style-logo img{max-width:100%!important;max-height:100%!important;object-fit:contain}
  .goes-style-left .goes-style-logo:nth-of-type(2),.goes-style-left .goes-style-logo:nth-of-type(3){display:none!important}
  .goes-style-title.goes-style-brand{display:block!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important}
  .goes-brand-kicker,.goes-brand-subtitle{display:none!important}
  .goes-brand-title{font-size:13px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .goes-style-actions{display:none!important}
  .clinicas-mobile-nav{position:sticky;top:51px;z-index:1190;display:flex;gap:6px;align-items:center;justify-content:space-between;background:#073b58;color:#fff;padding:6px 8px;border-bottom:1px solid rgba(255,255,255,.22)}
  .clinicas-mobile-trigger{border:1px solid #70b2d3;border-radius:8px;background:#0d5980;color:#fff;padding:9px 12px;font:700 12px 'Segoe UI',sans-serif;cursor:pointer;min-height:38px}
  .clinicas-mobile-mode{font-size:11px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  main{padding:0!important;max-width:none!important}
  .map-panel{margin:0!important;border:0!important;border-radius:0!important;overflow:visible!important}
  .map-head{display:none!important}
  .map-workspace{display:block!important;min-height:0!important}
  .map-side{position:relative;display:flex;flex-direction:column;min-width:0!important}
  #map{order:1;height:calc(100dvh - 174px)!important;min-height:310px!important;width:100%!important;z-index:1}
  .layer-info{order:2;padding:8px 10px!important;border-radius:0!important;max-height:145px;overflow-y:auto;overscroll-behavior:contain}
  .layer-title{font-size:12px!important}
  .layer-file,.pixel-help{display:none!important}
  #legendDiscrete{max-height:70px;overflow:auto}
  .station-legend,.lightning-legend{font-size:10px!important;gap:5px!important;margin-top:4px!important}
  .catalog,.toolbar{display:none!important}
  .clinicas-mobile-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:rgba(0,14,27,.65);z-index:1390}
  .clinicas-mobile-drawer{display:flex;flex-direction:column;position:fixed;top:0;bottom:0;width:min(88vw,410px);max-width:100%;z-index:1400;background:#063b56;color:#fff;box-shadow:0 0 32px #001b2c88;transition:transform .22s ease;visibility:hidden;pointer-events:none}
  .clinicas-mobile-drawer-left{left:0;transform:translateX(-105%)}
  .clinicas-mobile-drawer-right{right:0;transform:translateX(105%)}
  .clinicas-mobile-drawer.is-open{transform:translateX(0);visibility:visible;pointer-events:auto}
  .clinicas-drawer-heading{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#00416a;border-bottom:1px solid #317494}
  .clinicas-drawer-heading button{border:1px solid #8ab9d2;color:#fff;background:#125d85;border-radius:7px;font-size:18px;width:40px;height:38px;cursor:pointer}
  .clinicas-drawer-slot{flex:1;overflow-y:auto;overscroll-behavior:contain;min-height:0}
  #cmWrfSlot .catalog,#cmMonitorSlot .toolbar{display:flex!important;position:static!important;width:100%!important;min-height:0!important;border:0!important;border-radius:0!important}
  #cmWrfSlot .catalog{background:#073b58!important;color:#fff!important}
  #cmWrfSlot .catalog-list{max-height:none!important;overflow:visible!important}
  #cmWrfSlot .catalog-tools{position:sticky;top:0;z-index:2;background:#073b58}
  #cmMonitorSlot .toolbar{flex-direction:column!important;align-items:stretch!important;gap:10px!important;background:#073b58!important;color:#fff!important;padding:13px!important}
  #cmMonitorSlot .toolbar>*{max-width:100%!important}
  #cmMonitorSlot .weather-alert-diagnostic{width:100%!important;overflow-wrap:anywhere}
  body.clinicas-mobile-drawer-open{overflow:hidden!important}
  .grid,.steps{grid-template-columns:1fr!important}
  .content{margin:12px!important}
}
@media(min-width:901px){.clinicas-mobile-nav,.clinicas-mobile-backdrop,.clinicas-mobile-drawer{display:none!important}}
@media(prefers-reduced-motion:reduce){.clinicas-mobile-drawer{transition:none!important}}

/* V2 - Mapa compacto en moviles: sin alterar el dashboard de escritorio.
   Reduce mar y paises vecinos visibles bajo el mapa sin alterar el zoom geoespacial. */
@media (max-width: 600px) {
  #map {
    height: clamp(350px, 60dvh, 540px) !important;
    min-height: 350px !important;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  #map {
    height: clamp(420px, 65dvh, 640px) !important;
    min-height: 420px !important;
  }
}
