/* Visor de mapas de previsión; reglas exclusivas de esta sección. */
/* Adaptación del visor a la estructura común Meteosat NEW. */
.mapas-prevision-pagina {width:100%; color:var(--texto); font-family:Arial,Helvetica,sans-serif;}
.ms-mapas-page-new > .wrapper {max-width:1200px;box-sizing:border-box;}
.ms-mapas-page-new .sidebar.left {width:160px;}
.ms-mapas-page-new main.right {width:calc(100% - 190px);max-width:1010px;min-width:0;float:right;}
.ms-mapas-page-new main.right .contents.long {width:100%;min-width:0;float:none;}
.ms-mapas-page-new main.right .body {box-sizing:border-box;min-width:0;}
.ms-mapas-page-new .publi-top {min-height:24px;}
.ms-mapas-page-new .meteo-wrap {max-width:1020px;margin-left:auto;margin-right:auto;}
@media (max-width:1100px) {
 .ms-mapas-page-new > .wrapper {width:100%;padding:0 12px;}
 .ms-mapas-page-new main.right {width:calc(100% - 190px);}
}
@media (max-width:787px) {
 .ms-mapas-page-new > .wrapper {width:100%;padding:0 4px;}
 .ms-mapas-page-new .sidebar.left {display:none;}
 .ms-mapas-page-new main.right {float:none!important;width:100%!important;max-width:100%;}
 .ms-mapas-page-new main.right .contents.long {float:none!important;width:100%!important;}
 .ms-mapas-page-new .publi-top {display:none;}
}

.mapas-prevision-pagina { --azul:#133a50; --azul2:#0c637b; --naranja:#e99527; --borde:#d7e1e9; --texto:#193444; --suave:#627987; --fondo:#f2f6f8; --blanco:#fff; }
.mapas-prevision-pagina, .mapas-prevision-pagina * { box-sizing: border-box; }
.mapas-prevision-pagina button { font:inherit; cursor:pointer; }
.mapas-prevision-pagina button:focus-visible { outline:3px solid #d98a22; outline-offset:2px; }
.meteo-wrap { max-width:1020px; margin:24px auto 50px; padding:0 15px; }
.meteo-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin:0 0 16px; }
.meteo-head h1 { margin:0 0 3px; font-size:clamp(23px,3vw,31px); line-height:1.15; color:var(--azul); }
.meteo-head p { margin:0; font-size:14px; color:var(--suave); }
.meteo-status { font-size:12px; color:var(--suave); white-space:nowrap; }
.meteo-panel { background:var(--blanco); border:1px solid var(--borde); border-radius:14px; box-shadow:0 5px 22px rgba(28,67,87,.065); overflow:hidden; }
.meteo-panel__nav { padding:13px 15px 12px; border-bottom:1px solid var(--borde); }
.meteo-days { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-bottom:14px; }
.meteo-day { border:1px solid var(--borde); background:#f7fafc; color:var(--azul); border-radius:10px; min-height:62px; padding:7px 3px; display:flex; flex-direction:column; justify-content:center; align-items:center; line-height:1.2; }
.meteo-day strong { font-size:14px; font-weight:800; }
.meteo-day small { color:#637a89; font-size:12px; margin-top:5px; }
.meteo-day[aria-selected="true"] { background:var(--azul); border-color:var(--azul); color:#fff; }
.meteo-day[aria-selected="true"] small { color:#d7e9f2; }
.meteo-hours-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; }
.meteo-hours-title { font-size:12px; color:var(--suave); font-weight:700; text-transform:uppercase; letter-spacing:.045em; }
.meteo-hours-legend { font-size:12px; color:var(--suave); }
.meteo-hours { display:flex; gap:6px; overflow-x:auto; padding:2px 2px 8px; scrollbar-width:thin; scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
.meteo-hour { border:1px solid var(--borde); background:#f6f9fa; color:var(--azul); flex:0 0 auto; min-width:66px; padding:10px 8px; border-radius:9px; font-size:13px; font-weight:700; scroll-snap-align:center; }
.meteo-hour[aria-current="true"] { color:#fff; background:var(--azul2); border-color:var(--azul2); }
.meteo-controls { padding:11px 15px; display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; border-bottom:1px solid var(--borde); background:#fbfdfe; }
.meteo-toggle { display:inline-flex; background:#e8eff3; padding:4px; gap:4px; border-radius:9px; }
.meteo-toggle button { border:0; background:transparent; border-radius:7px; font-size:13px; color:#3d5968; padding:9px 13px; font-weight:750; }
.meteo-toggle button[aria-pressed="true"] { background:#fff; box-shadow:0 1px 5px rgba(13,54,73,.14); color:var(--azul); }
.meteo-actions { display:flex; align-items:center; gap:6px; }
.meteo-action { border:1px solid var(--borde); background:#fff; color:var(--azul); border-radius:9px; padding:8px 11px; min-height:38px; min-width:39px; font-weight:750; }
.meteo-action--play { background:var(--azul); color:white; border-color:var(--azul); min-width:102px; }
.meteo-action--play.is-playing { background:#e3edf1; color:var(--azul); }
.meteo-map-meta { display:flex; padding:11px 15px; gap:10px; justify-content:space-between; align-items:center; }
.meteo-map-meta__time { font-size:14px; font-weight:800; }
.meteo-map-meta__other { font-size:12px; color:var(--suave); }
.meteo-viewbox { width:100%; overflow:auto; touch-action:pan-x pan-y pinch-zoom; background:#e5f1f7; border-top:1px solid var(--borde); border-bottom:1px solid var(--borde); scrollbar-width:thin; }
.meteo-img { width:100%; max-width:900px; display:block; margin:auto; height:auto; transition:opacity .14s ease; }
.meteo-img.is-loading { opacity:.64; }
.meteo-map-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 15px; color:var(--suave); font-size:12px; }
.meteo-help { color:var(--suave); font-size:12px; margin:13px 4px 0; line-height:1.5; }
.meteo-compartir { clear:both; margin:20px 4px 24px; }
.meteo-compartir::after { content:""; display:block; clear:both; }
.meteo-empty { padding:35px 20px; line-height:1.65; color:var(--azul); }
.meteo-empty strong { display:block; font-size:18px; margin-bottom:7px; }
.mapas-prevision-pagina [hidden] { display:none!important; }
@media(max-width:640px) {
  .meteo-wrap { padding:0 7px; margin:14px auto 40px; }
  .meteo-head { padding:0 6px; display:block; }
  .meteo-head p { font-size:13px; }
  .meteo-status { margin-top:7px; display:block; }
  .meteo-panel { border-radius:10px; }
  .meteo-panel__nav { padding:10px 9px 7px; }
  .meteo-day { min-height:55px; }
  .meteo-day strong { font-size:13px; }
  .meteo-day small { font-size:11px; }
  .meteo-hour { min-width:60px; padding:9px 7px; }
  .meteo-controls { padding:9px; }
  .meteo-toggle { flex:1; }
  .meteo-toggle button { flex:1; padding:10px 8px; }
  .meteo-actions { width:100%; justify-content:space-between; }
  .meteo-action { flex:1; }
  .meteo-map-meta { padding:9px 11px; flex-wrap:wrap; }
  .meteo-map-footer { padding:10px; flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) { .meteo-img { transition:none; } }
