:root {
  color-scheme: light;
  --ink-950: #082335;
  --ink-900: #0c2d43;
  --ink-800: #123e59;
  --ink-700: #31556b;
  --ink-600: #557184;
  --ink-500: #758b99;
  --line: #dbe5eb;
  --line-strong: #cad8e1;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --surface-blue: #eaf4f8;
  --page: #eef4f7;
  --blue: #087fa5;
  --blue-dark: #05627f;
  --cyan: #21b7c9;
  --yellow: #f4c85a;
  --orange: #eb8d43;
  --red: #d85a56;
  --green: #2a927c;
  --shadow-sm: 0 8px 24px rgba(8, 35, 53, .08);
  --shadow-lg: 0 24px 58px rgba(8, 35, 53, .15);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --page-width: 1180px;
  --header-h: 82px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 95% 0%, rgba(33, 183, 201, .14), transparent 28rem),
    linear-gradient(180deg, #f7fafb 0, var(--page) 33rem, var(--page) 100%);
  color: var(--ink-950);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-weight: 800;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(202, 216, 225, .72);
  background: rgba(247, 250, 251, .88);
  backdrop-filter: blur(18px) saturate(140%);
}
.header-inner {
  width: min(calc(100% - 40px), var(--page-width));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo-picture {
  display: block;
  line-height: 0;
}
.brand-logo {
  width: auto;
  height: 72px;
  max-width: none;
  object-fit: contain;
}

.desktop-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--ink-950); background: rgba(255, 255, 255, .72); }
.nav-link.is-active { color: #fff; background: var(--ink-900); }

.city-picker { position: relative; justify-self: end; }
.city-picker-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 4px 14px rgba(8, 35, 53, .05);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}
.city-picker-button:hover { border-color: var(--line-strong); background: #fff; }
.location-dot { width: 9px; height: 9px; border: 2px solid var(--blue); border-radius: 50%; box-shadow: 0 0 0 4px rgba(8, 127, 165, .1); }
.chevron { width: 8px; height: 8px; border-right: 2px solid var(--ink-600); border-bottom: 2px solid var(--ink-600); transform: translateY(-2px) rotate(45deg); }
.city-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}
.city-search-label { display: block; margin: 1px 4px 8px; color: var(--ink-600); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.city-search { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: var(--surface-soft); color: var(--ink-950); }
.city-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 127, 165, .12); }
.city-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px; overflow: auto; }
.city-option { width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.city-option:hover, .city-option[aria-selected="true"] { background: var(--surface-blue); color: var(--blue-dark); }
.city-option:disabled { cursor: not-allowed; opacity: .46; background: transparent; color: var(--ink-600); }
.city-option-status { flex: 0 0 auto; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.page-section { min-height: calc(100vh - var(--header-h)); display: none; }
.page-section.is-visible { display: block; }
.page-shell { width: min(calc(100% - 40px), var(--page-width)); margin: 0 auto; padding: 34px 0 64px; }
.status-region:empty { display: none; }
.loading-card, .error-card {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-700);
  font-weight: 700;
}
.error-card { display: grid; text-align: center; }
.error-card strong { color: var(--ink-950); font-size: 20px; }
.error-card button { justify-self: center; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--ink-900); color: #fff; cursor: pointer; font-weight: 800; }
.loading-spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 410px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 7% 10%, rgba(255, 255, 255, .18), transparent 20rem),
    radial-gradient(circle at 86% 80%, rgba(33, 183, 201, .3), transparent 22rem),
    linear-gradient(135deg, #092b42 0%, #0c4562 58%, #087fa5 100%);
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  top: -140px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 98px rgba(255,255,255,.018);
}
.hero-main { position: relative; z-index: 1; padding: 34px 38px 32px; display: flex; flex-direction: column; }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.eyebrow, .section-kicker { margin: 0; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: rgba(255, 255, 255, .68); }
.updated-chip { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); font-size: 11px; font-weight: 700; }
.hero-condition { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 24px; margin: 36px 0 24px; }
.hero-icon-wrap { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 44px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.hero-icon { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.18)); }
.hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 62px); line-height: .98; letter-spacing: -.05em; }
.hero-summary { max-width: 520px; margin: 13px 0 0; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.5; }
.hero-summary-line { display: block; }
.hero-summary-accumulation.is-first { margin-top: 8px; }
.temperature-line { display: flex; align-items: baseline; gap: 14px; margin-top: 17px; }
.temperature-main { font-size: 36px; font-weight: 830; letter-spacing: -.04em; }
.temperature-range { color: rgba(255,255,255,.72); font-size: 14px; font-weight: 700; }
.hero-metrics { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); }
.hero-metric { padding: 20px 14px 2px 0; min-width: 0; }
.hero-metric + .hero-metric { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-metric-label { display: block; color: rgba(255,255,255,.58); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-metric-value { display: block; margin-top: 7px; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-metric-value.has-warning { display: flex; align-items: center; gap: 8px; overflow: visible; }
.hero-gust-warning {
  flex: 0 0 auto;
  color: #ffd45c;
  opacity: 1;
  font-size: 19px;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}

.hero-side { position: relative; z-index: 2; margin: 16px; padding: 25px; border-radius: 23px; background: rgba(3, 28, 43, .48); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); align-self: stretch; display: flex; flex-direction: column; }
.hero-side-empty { margin: auto 0; }
.hero-side-label { color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero-side h2 { margin: 14px 0 8px; font-size: 25px; line-height: 1.12; letter-spacing: -.03em; }
.hero-side p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.5; }
.hero-event-icon { width: 76px; height: 76px; margin: auto 0 18px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); }
.hero-side-meta { display: grid; gap: 9px; margin-top: 20px; }
.hero-side-meta span { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.65); font-size: 12px; }
.hero-side-meta strong { color: #fff; text-align: right; }

.content-section { margin-top: 42px; }

.observations-section[hidden] { display: none; }
.observations-heading { align-items: center; }
.observations-updated { margin: 0; color: var(--ink-500); font-size: 12px; font-weight: 700; }
.observations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.observation-metric {
  min-width: 0;
  padding: 18px 20px;
}
.observation-metric + .observation-metric { border-left: 1px solid var(--line); }
.observation-label {
  display: block;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.observation-metric strong {
  display: block;
  margin-top: 7px;
  color: var(--ink-950);
  font-size: 22px;
  letter-spacing: -.03em;
}
.observation-metric small {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 700;
}
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-kicker { color: var(--blue); }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.section-note { margin: 0; color: var(--ink-500); font-size: 12px; }

.hourly-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hour-card { position: relative; min-height: 198px; scroll-snap-align: start; padding: 19px 12px 15px; text-align: center; }
.hourly-rail.hourly-values-2 .hour-card { min-height: 212px; }
.hourly-rail.hourly-values-3 .hour-card { min-height: 246px; }
.hourly-rail.hourly-values-4 .hour-card { min-height: 280px; }
.hour-card + .hour-card { border-left: 1px solid var(--line); }
.hour-card.is-wet { background: linear-gradient(180deg, rgba(8,127,165,.055), transparent); }
.hour-card.starts-new-day {
  border-left: 3px solid rgba(14, 151, 194, .72);
}
.hour-day-marker {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 12px);
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hour-time { font-size: 13px; font-weight: 850; }
.hour-icon { width: 50px; height: 50px; margin: 14px auto 8px; object-fit: contain; }
.hour-temp { font-size: 25px; font-weight: 820; letter-spacing: -.04em; }
.hour-condition { min-height: 34px; margin-top: 5px; color: var(--ink-600); font-size: 11px; line-height: 1.3; }
.hour-extra {
  display: grid;
  grid-auto-rows: 30px;
  gap: 4px;
  margin-top: 2px;
  color: var(--blue-dark);
  font-size: 10.5px;
  font-weight: 800;
}
.hour-value {
  align-self: center;
  padding: 3px 4px;
  border-radius: 5px;
  line-height: 1.2;
  white-space: nowrap;
}
.hour-value-wind { color: var(--blue-dark); font-weight: 750; }
.hour-value.is-empty { visibility: hidden; }
.hour-value.impact-attention { background: rgba(244, 200, 90, .20); color: #765711; }
.hour-value.impact-high { background: rgba(235, 141, 67, .30); color: #824619; }
.hour-value.impact-very-high { background: rgba(216, 90, 86, .28); color: #8c3532; }

.event-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 26px 30px;
  border: 1px solid #cbdfe8;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #f7fbfc, #eaf4f8);
  box-shadow: var(--shadow-sm);
}
.event-icon-wrap { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.event-icon { width: 78px; height: 78px; object-fit: contain; }
.event-card h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.event-card p { margin: 8px 0 0; color: var(--ink-600); line-height: 1.5; }
.event-time { color: var(--blue-dark); font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.event-data { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 10px; min-width: 260px; }
.event-data div { padding: 13px 14px; border-radius: 13px; background: rgba(255,255,255,.75); border: 1px solid rgba(202,216,225,.75); }
.event-data span { display: block; color: var(--ink-500); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.event-data strong { display: block; margin-top: 5px; font-size: 14px; }

.agreement-summary { display: flex; align-items: center; gap: 8px; color: var(--ink-600); font-size: 12px; }
.agreement-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.agreement-dot.medium { background: var(--yellow); }
.agreement-dot.low { background: var(--orange); }

.day-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.day-card {
  position: relative;
  min-width: 0;
  padding: 19px 14px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 16px rgba(8,35,53,.045);
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.day-card:hover { transform: translateY(-3px); border-color: #b9ced9; }
.day-card[aria-selected="true"] { border-color: var(--blue); background: var(--surface); box-shadow: 0 11px 28px rgba(8, 91, 124, .13); }
.day-card[aria-selected="true"]::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.day-name { display: block; font-size: 13px; font-weight: 850; text-transform: capitalize; }
.day-date { display: block; margin-top: 3px; color: var(--ink-500); font-size: 11px; }
.day-icon { width: 60px; height: 60px; margin: 13px auto 8px; object-fit: contain; }
.day-temp { font-size: 18px; font-weight: 820; letter-spacing: -.03em; }
.day-condition { min-height: 34px; margin-top: 7px; color: var(--ink-600); font-size: 11px; line-height: 1.35; }
.day-precip { margin-top: 9px; color: var(--blue-dark); font-size: 11px; font-weight: 800; }
.day-badge { position: absolute; right: 9px; top: 9px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #fff1ca; color: #8b5d08; font-size: 10px; font-weight: 900; }

.day-detail { margin-top: 14px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.day-detail-header { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 20px; margin-bottom: 22px; }
.day-detail-header h3 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.day-detail-header p { margin: 7px 0 0; color: var(--ink-600); }
.confidence-badge { padding: 8px 11px; border-radius: 999px; background: #e9f5f2; color: #1f7667; font-size: 11px; font-weight: 850; white-space: nowrap; }
.confidence-badge.medium { background: #fff6d9; color: #85620e; }
.confidence-badge.low { background: #fff0e7; color: #9a5423; }
.day-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 9px; margin-bottom: 24px; }
.summary-tile { padding: 13px; border-radius: 13px; background: var(--surface-soft); border: 1px solid #e6edf1; }
.summary-tile span { display: block; color: var(--ink-500); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.summary-tile strong { display: block; margin-top: 6px; font-size: 14px; }
.blocks-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.block-card { position: relative; min-height: 220px; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfd; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.block-card:hover { transform: translateY(-2px); border-color: #a9c7d6; box-shadow: 0 8px 20px rgba(8,35,53,.08); }
.block-card:focus-visible { outline: 3px solid rgba(8,127,165,.25); outline-offset: 2px; }
.block-time { color: var(--ink-500); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.block-icon { width: 54px; height: 54px; margin: 12px 0 7px; object-fit: contain; }
.block-card h4 { margin: 0; font-size: 15px; }
.block-temp { margin-top: 8px; font-size: 13px; font-weight: 800; }
.block-meta { display: grid; gap: 5px; margin-top: 10px; color: var(--ink-600); font-size: 11px; }
.block-uncertain { position: absolute; right: 11px; top: 11px; color: #9a6010; font-size: 10px; font-weight: 850; }
.block-action { display: inline-block; margin-top: 13px; color: var(--blue-dark); font-size: 10px; font-weight: 850; }
.hour-detail { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.hour-detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.hour-detail-heading h4 { margin: 0; font-size: 20px; }
.hour-detail-heading p { margin: 0; color: var(--ink-500); font-size: 11px; }
.hour-detail-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfd; }
.hour-detail-card { min-height: 250px; padding: 14px 9px; text-align: center; }
.hour-detail-card + .hour-detail-card { border-left: 1px solid var(--line); }
.hour-detail-card.is-selected-block { background: rgba(8,127,165,.10); box-shadow: inset 0 -3px 0 var(--blue); }
.hour-detail-card time { display: block; font-size: 11px; font-weight: 850; }
.hour-detail-card img { width: 42px; height: 42px; margin: 9px auto 5px; object-fit: contain; }
.hour-detail-card strong, .hour-detail-card span { display: block; }
.hour-detail-card strong { font-size: 18px; }
.hour-detail-card span { min-height: 30px; margin-top: 4px; color: var(--ink-600); font-size: 10px; line-height: 1.3; }
.hour-detail-values {
  display: grid;
  grid-auto-rows: 27px;
  gap: 3px;
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
}
.hour-detail-value {
  align-self: center;
  padding: 3px 3px;
  border-radius: 5px;
  line-height: 1.15;
  white-space: nowrap;
}
.hour-detail-value-wind { color: var(--blue-dark); font-weight: 750; }
.hour-detail-value.is-empty { visibility: hidden; }
.hour-detail-value.impact-attention { background: rgba(244, 200, 90, .20); color: #765711; }
.hour-detail-value.impact-high { background: rgba(235, 141, 67, .30); color: #824619; }
.hour-detail-value.impact-very-high { background: rgba(216, 90, 86, .28); color: #8c3532; }

.forecast-footer { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 22px; color: var(--ink-500); font-size: 11px; }
.forecast-footer div { display: grid; gap: 4px; }
.forecast-footer strong { color: var(--ink-800); }
.forecast-footer p { margin: 0; max-width: 430px; text-align: right; line-height: 1.5; }

.placeholder-section { display: none; }
.placeholder-section.is-visible { display: block; }
.placeholder-card { position: relative; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 56px; border-radius: 32px; color: #fff; background: linear-gradient(135deg, var(--ink-900), #0a617e); box-shadow: var(--shadow-lg); }
.placeholder-card .section-kicker { color: var(--cyan); }
.placeholder-card h1 { max-width: 680px; margin: 12px 0; font-size: clamp(42px, 7vw, 82px); line-height: .95; letter-spacing: -.055em; }
.placeholder-card p:not(.section-kicker) { max-width: 640px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.6; }
.placeholder-number { position: absolute; right: 28px; top: -20px; color: rgba(255,255,255,.07); font-size: 180px; font-weight: 900; letter-spacing: -.08em; }
.text-link { margin-top: 18px; color: #fff; font-weight: 800; text-underline-offset: 5px; }

.mobile-nav { display: none; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { min-height: 260px; }
  .hero-event-icon { margin: 14px 0; }
  .event-card { grid-template-columns: 88px 1fr; }
  .event-icon-wrap { width: 88px; height: 88px; }
  .event-data { grid-column: 1 / -1; min-width: 0; grid-template-columns: repeat(4, minmax(0,1fr)); }
  .day-strip { overflow-x: auto; grid-template-columns: repeat(4, minmax(150px, 1fr)); padding-bottom: 8px; }
  .day-summary-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .blocks-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  :root { --header-h: 70px; }
  body { padding-bottom: 72px; }
  .site-header { height: var(--header-h); }
  .header-inner { width: min(calc(100% - 24px), var(--page-width)); gap: 10px; }
  .brand-logo { height: 58px; }
  .city-picker-button { min-height: 40px; max-width: 180px; padding: 7px 10px; font-size: 12px; }
  .location-dot { display: none; }
  .page-shell { width: min(calc(100% - 22px), var(--page-width)); padding: 18px 0 34px; }
  .hero { min-height: 0; border-radius: 24px; }
  .hero-main { padding: 24px 20px 22px; }
  .eyebrow-row { align-items: flex-start; }
  .updated-chip { max-width: 132px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hero-condition { grid-template-columns: 92px 1fr; gap: 17px; margin: 28px 0 23px; }
  .hero-icon-wrap { width: 92px; height: 92px; border-radius: 28px; }
  .hero-icon { width: 77px; height: 77px; }
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .hero-summary { font-size: 13px; }
  .temperature-line { flex-wrap: wrap; margin-top: 12px; gap: 7px 12px; }
  .temperature-main { font-size: 28px; }
  .temperature-range { font-size: 12px; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-metric { padding: 16px 8px 3px 0; }
  .hero-metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-metric:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); margin-top: 13px; }
  .hero-side { margin: 0 10px 10px; padding: 21px; min-height: 230px; }
  .hero-side h2 { font-size: 21px; }
  .content-section { margin-top: 32px; }
  .observations-heading { align-items: flex-start; }
  .observations-updated { font-size: 11px; }
  .observations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .observation-metric { padding: 15px 14px; border-bottom: 1px solid var(--line); }
  .observation-metric + .observation-metric { border-left: 0; }
  .observation-metric:nth-child(even) { border-left: 1px solid var(--line); }
  .observation-metric:nth-last-child(-n+2) { border-bottom: 0; }
  .observation-metric strong { font-size: 19px; }
  .section-heading { align-items: flex-start; margin-bottom: 14px; }
  .section-heading h2 { font-size: 25px; }
  .section-note, .agreement-summary { display: none; }
  .hourly-rail { grid-auto-columns: 104px; border-radius: 20px; }
  .hour-card { min-height: 198px; }
  .hourly-rail.hourly-values-2 .hour-card { min-height: 212px; }
  .hourly-rail.hourly-values-3 .hour-card { min-height: 246px; }
  .hour-value { font-size: 10px; padding-inline: 3px; }
  .event-card { grid-template-columns: 72px 1fr; gap: 16px; padding: 20px; border-radius: 22px; }
  .event-icon-wrap { width: 72px; height: 72px; border-radius: 20px; }
  .event-icon { width: 58px; height: 58px; }
  .event-card h3 { font-size: 20px; }
  .event-card p { font-size: 13px; }
  .event-data { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .day-strip { margin-inline: -11px; padding-inline: 11px; grid-template-columns: repeat(4, 142px); }
  .day-card { padding: 17px 11px; }
  .day-detail { padding: 20px 15px; border-radius: 22px; }
  .day-detail-header { grid-template-columns: 1fr; gap: 10px; }
  .day-detail-header h3 { font-size: 23px; }
  .confidence-badge { justify-self: start; }
  .day-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .blocks-grid { grid-template-columns: 1fr; }
  .block-card { min-height: 0; display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; }
  .block-time { grid-column: 1 / -1; }
  .block-icon { grid-row: 2 / 4; grid-column: 1; margin: 10px 0 0; }
  .block-card h4 { grid-column: 2; margin-top: 10px; }
  .block-temp, .block-meta { grid-column: 2; }
  .forecast-footer { display: grid; }
  .forecast-footer p { text-align: left; }
  .placeholder-card { min-height: 450px; padding: 32px 24px; border-radius: 24px; }
  .placeholder-card h1 { font-size: 48px; }
  .placeholder-card p:not(.section-kicker) { font-size: 15px; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 9px; z-index: 120; min-height: 58px; display: grid; grid-template-columns: repeat(4,1fr); padding: 5px; border: 1px solid rgba(202,216,225,.85); border-radius: 19px; background: rgba(255,255,255,.93); box-shadow: 0 14px 38px rgba(8,35,53,.2); backdrop-filter: blur(16px); }
  .mobile-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; color: var(--ink-500); text-decoration: none; font-size: 9px; font-weight: 800; }
  .mobile-nav-link.is-active { background: var(--surface-blue); color: var(--blue-dark); }
  .mobile-nav-icon { width: 16px; height: 16px; position: relative; }
  .icon-forecast::before { content: ""; position: absolute; left: 1px; right: 1px; bottom: 2px; height: 7px; border-radius: 7px; background: currentColor; box-shadow: 6px -5px 0 -2px currentColor; }
  .icon-map { border: 2px solid currentColor; border-radius: 3px; transform: skewY(-7deg); }
  .icon-chart::before { content: ""; position: absolute; inset: 2px 1px 1px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .icon-chart::after { content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 6px; border-top: 2px solid currentColor; transform: skewY(-28deg); }
  .icon-report { border: 2px solid currentColor; border-radius: 3px; }
  .icon-report::before { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 2px; background: currentColor; box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   METEOGRAMAS
   ============================================================ */
:root {
  --model-gfs: #087fa5;
  --model-gfs-soft: rgba(8, 127, 165, .12);
  --model-gfs25: #6d63b5;
  --model-gfs25-soft: rgba(109, 99, 181, .12);
  --model-icon: #e26f4f;
  --model-icon-soft: rgba(226, 111, 79, .13);
  --model-combined: #243f50;
  --model-combined-soft: rgba(36, 63, 80, .12);
}

.meteogram-page .page-shell { padding-top: 30px; }
.meteogram-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  gap: 28px;
  align-items: end;
  padding: 34px 38px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(33, 183, 201, .3), transparent 20rem),
    radial-gradient(circle at 8% 110%, rgba(255, 255, 255, .13), transparent 24rem),
    linear-gradient(135deg, #092c43 0%, #0c4966 58%, #087fa5 100%);
  box-shadow: var(--shadow-lg);
}
.meteogram-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -120px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 82px rgba(255,255,255,.018);
}
.meteogram-hero > * { position: relative; z-index: 1; }
.meteogram-hero .section-kicker { color: rgba(255,255,255,.62); }
.meteogram-hero h1 { margin: 9px 0 12px; font-size: clamp(42px, 5vw, 68px); line-height: .95; letter-spacing: -.055em; }
.meteogram-hero p:not(.section-kicker) { max-width: 660px; margin: 0; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.55; }
.meteogram-hero-side {
  justify-self: stretch;
  padding: 21px 22px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(4, 36, 54, .38);
  backdrop-filter: blur(12px);
}
.meteogram-city-label { display: block; color: rgba(255,255,255,.5); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.meteogram-hero-side > strong { display: block; margin-top: 7px; font-size: 21px; letter-spacing: -.025em; }
.meteogram-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.meteogram-run-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); font-size: 11px; font-weight: 760; }
.meteogram-run-chip i, .meteogram-legend i, .meteogram-model-button i, .meteogram-tooltip i, .table-model-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.meteogram-run-chip.gfs i, i.gfs, .table-model-dot.gfs { color: var(--model-gfs); background: var(--model-gfs); }
.meteogram-run-chip.gfs25 i, i.gfs25, .table-model-dot.gfs25 { color: var(--model-gfs25); background: var(--model-gfs25); }
.meteogram-run-chip.icon i, i.icon, .table-model-dot.icon { color: var(--model-icon); background: var(--model-icon); }
.meteogram-run-chip.combined i, i.combined, .table-model-dot.combined { color: var(--model-combined); background: var(--model-combined); }

.meteogram-status { margin-top: 22px; }
.meteogram-loading, .meteogram-error {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  color: var(--ink-700);
  font-weight: 740;
}
.meteogram-error { color: #9d3f3c; background: #fff8f7; border-color: #f0cfca; }

.meteogram-controls-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(202,216,225,.88);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.meteogram-field, .meteogram-control-group { min-width: 0; }
.meteogram-field > span, .meteogram-control-label { display: block; margin: 0 0 8px 2px; color: var(--ink-600); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.meteogram-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 42px 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink-950);
  background: var(--surface-soft);
  font-weight: 760;
  cursor: pointer;
}
.meteogram-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,165,.12); }
.meteogram-variable-controls { min-width: 0; display: grid; gap: 11px; }
.meteogram-mode-row { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.meteogram-mode-row .meteogram-control-label { margin-bottom: 0; }
.meteogram-mode-segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.meteogram-mode-button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-600); cursor: pointer; font-size: 11px; font-weight: 820; }
.meteogram-mode-button[aria-pressed="true"] { background: #fff; color: var(--ink-950); box-shadow: 0 3px 9px rgba(8,35,53,.08); }
.meteogram-variable-selects { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.meteogram-variable-selects > [hidden] { display: none; }
.meteogram-preset-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.meteogram-preset-row[hidden] { display: none; }
.meteogram-preset-row > span { flex: 0 0 auto; color: var(--ink-500); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.meteogram-preset-row > div { display: flex; gap: 6px; min-width: 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.meteogram-preset-button { flex: 0 0 auto; min-height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-600); cursor: pointer; font-size: 10px; font-weight: 780; white-space: nowrap; }
.meteogram-preset-button:hover, .meteogram-preset-button[aria-pressed="true"] { border-color: rgba(8,127,165,.35); background: #edf8fb; color: var(--blue-dark); }

.meteogram-segmented, .meteogram-model-buttons { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.meteogram-window-button, .meteogram-model-button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-600);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.meteogram-window-button { min-width: 55px; padding: 0 10px; }
.meteogram-model-button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; }
.meteogram-window-button:hover, .meteogram-model-button:hover { color: var(--ink-950); }
.meteogram-window-button[aria-pressed="true"], .meteogram-model-button[aria-pressed="true"] { background: #fff; color: var(--ink-950); box-shadow: 0 3px 10px rgba(8,35,53,.08); }
.meteogram-model-button[aria-pressed="false"] i { opacity: .3; }

.meteogram-chart-card, .meteogram-table-card {
  position: relative;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-sm);
}
.meteogram-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.meteogram-card-heading .section-kicker { color: var(--blue); }
.meteogram-title-line { display: flex; align-items: baseline; gap: 10px; margin-top: 7px; }
.meteogram-title-line h2, .meteogram-card-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.035em; }
.meteogram-title-line > span { color: var(--ink-500); font-size: 14px; font-weight: 800; }
.meteogram-card-heading p:not(.section-kicker), #meteogramWindowDescription { margin: 7px 0 0; color: var(--ink-600); font-size: 12px; line-height: 1.45; }
.meteogram-card-heading.compact { align-items: end; }
.meteogram-card-heading.compact > p { max-width: 360px; text-align: right; }
.meteogram-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; max-width: 520px; }
.meteogram-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-700); font-size: 11px; font-weight: 760; }
.meteogram-legend .gfs { color: var(--model-gfs); }
.meteogram-legend .gfs25 { color: var(--model-gfs25); }
.meteogram-legend .icon { color: var(--model-icon); }
.meteogram-legend .combined { color: var(--model-combined); }
.meteogram-legend-swatch { display: inline-block; width: 22px !important; height: 8px !important; border-radius: 999px !important; background: transparent !important; position: relative; }
.meteogram-legend-swatch.line::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 3px solid currentColor; border-radius: 999px; }
.meteogram-legend-swatch.line.variable-secondary::before { border-top-style: dashed; border-top-width: 2px; }
.meteogram-legend-swatch.bar { height: 10px !important; border-radius: 3px !important; background: currentColor !important; opacity: .82; }
.meteogram-legend-swatch.bar.variable-secondary { background: color-mix(in srgb, currentColor 18%, transparent) !important; border: 1px solid currentColor; opacity: 1; }
.meteogram-legend-swatch.gfs { color: var(--model-gfs); }
.meteogram-legend-swatch.gfs25 { color: var(--model-gfs25); }
.meteogram-legend-swatch.icon { color: var(--model-icon); }
.meteogram-legend-swatch.combined { color: var(--model-combined); }


.meteogram-chart-shell {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #dce7ec;
  border-radius: 16px;
  background: #fbfdfe;
  box-shadow: 0 8px 24px rgba(8,35,53,.045);
}
.meteogram-chart-shell.is-dual { grid-template-columns: 72px minmax(0, 1fr) 82px; }
.meteogram-chart-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.meteogram-chart-scroll:focus { outline: 3px solid rgba(8,127,165,.12); outline-offset: -3px; }
.meteogram-chart { min-height: 442px; }
.meteogram-svg { display: block; max-width: none; font-family: inherit; }
.meteogram-fixed-axis {
  position: relative;
  z-index: 3;
  min-width: 0;
  background: #fbfdfe;
}
.meteogram-fixed-axis.left { border-right: 1px solid #dce7ec; }
.meteogram-fixed-axis.right { border-left: 1px solid #dce7ec; }
.meteogram-fixed-axis[hidden] { display: none; }
.meteogram-y-axis { display: block; width: 100%; height: 442px; font-family: inherit; }
.meteogram-fixed-axis-line { stroke: #819aa8; stroke-width: 1.25; }
.meteogram-fixed-axis-tick line { stroke: #91a8b5; stroke-width: 1; }
.meteogram-fixed-axis-tick text { fill: #526f7f; font-size: 11px; font-weight: 760; }
.meteogram-fixed-axis-title { fill: #153f56; font-size: 12.5px; font-weight: 900; letter-spacing: .01em; }
.meteogram-fixed-axis-title.right { fill: #244f65; }
.meteogram-plot-bg { fill: rgba(242,248,250,.72); }
.meteogram-grid-line line { stroke: #e4edf1; stroke-width: 1; }

.meteogram-day-line { stroke: #c6d8e1; stroke-width: 1.25; stroke-dasharray: 4 5; }
.meteogram-zero-line { stroke: #8da4b1; stroke-width: 1.4; stroke-dasharray: 5 4; }
.meteogram-x-label line { stroke: #b9cbd5; }
.meteogram-x-label text { fill: #617988; font-size: 10px; font-weight: 750; }
.meteogram-x-label text.date { fill: #173e55; font-size: 10px; font-weight: 850; }
.meteogram-line { fill: none; stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 2px 2px rgba(8,35,53,.06)); }
.meteogram-line.gfs { stroke: var(--model-gfs); }
.meteogram-line.gfs25 { stroke: var(--model-gfs25); }
.meteogram-line.icon { stroke: var(--model-icon); }
.meteogram-line.combined { stroke: var(--model-combined); stroke-width: 2.2; }
.meteogram-line.variable-secondary { stroke-dasharray: 8 5; stroke-width: 2.35; opacity: .9; }
.meteogram-line.combined.variable-primary { stroke-dasharray: 6 4; }
.meteogram-line.combined.variable-secondary { stroke-dasharray: 2 5; }
.meteogram-point { display: none; stroke: #fff; stroke-width: 1.15; }
.meteogram-point.gfs { fill: var(--model-gfs); }
.meteogram-point.gfs25 { fill: var(--model-gfs25); }
.meteogram-point.icon { fill: var(--model-icon); }
.meteogram-point.combined { fill: var(--model-combined); }
.meteogram-point.variable-secondary { fill: #fff; stroke-width: 1.8; }
.meteogram-point.gfs.variable-secondary { stroke: var(--model-gfs); }
.meteogram-point.gfs25.variable-secondary { stroke: var(--model-gfs25); }
.meteogram-point.icon.variable-secondary { stroke: var(--model-icon); }
.meteogram-point.combined.variable-secondary { stroke: var(--model-combined); }
.meteogram-bar { opacity: .88; }
.meteogram-bar.gfs { fill: var(--model-gfs); }
.meteogram-bar.gfs25 { fill: var(--model-gfs25); }
.meteogram-bar.icon { fill: var(--model-icon); }
.meteogram-bar.combined { fill: var(--model-combined); }
.meteogram-bar.variable-secondary { fill-opacity: .18; stroke-width: 1.25; }
.meteogram-bar.gfs.variable-secondary { stroke: var(--model-gfs); }
.meteogram-bar.gfs25.variable-secondary { stroke: var(--model-gfs25); }
.meteogram-bar.icon.variable-secondary { stroke: var(--model-icon); }
.meteogram-bar.combined.variable-secondary { stroke: var(--model-combined); }
.meteogram-zero-line.variable-secondary { opacity: .48; stroke-dasharray: 2 5; }
.meteogram-hover-line { stroke: var(--ink-700); stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
.meteogram-hit-area { fill: transparent; cursor: crosshair; }
.meteogram-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 190px;
  padding: 12px 13px;
  border: 1px solid rgba(202,216,225,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 34px rgba(8,35,53,.18);
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.meteogram-tooltip time { display: block; margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); color: var(--ink-600); font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.meteogram-tooltip div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 3px 0; font-size: 12px; }
.meteogram-tooltip div span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-600); font-weight: 750; }
.meteogram-tooltip strong { color: var(--ink-950); }
.meteogram-tooltip-variable + .meteogram-tooltip-variable { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.meteogram-tooltip-variable h5 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px; color: var(--ink-900); font-size: 11px; }
.meteogram-tooltip-variable h5 small { color: var(--ink-500); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.meteogram-tooltip-variable.secondary h5 { color: #4d7184; }

.meteogram-chart-note { margin: 12px 2px 0; color: var(--ink-500); font-size: 11px; line-height: 1.45; }

.meteogram-table-wrap { max-height: 560px; margin-top: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 17px; background: #fff; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
.meteogram-table-wrap table { width: 100%; min-width: 780px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.meteogram-table-wrap thead { position: sticky; top: 0; z-index: 2; }
.meteogram-table-wrap th, .meteogram-table-wrap td { padding: 11px 14px; border-bottom: 1px solid #e8eff3; text-align: right; white-space: nowrap; }
.meteogram-table-wrap thead th { background: #f1f6f8; color: var(--ink-600); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.meteogram-table-wrap thead th:first-child, .meteogram-table-wrap tbody th { position: sticky; left: 0; z-index: 1; text-align: left; }
.meteogram-table-wrap thead th:first-child { z-index: 3; }
.meteogram-table-wrap tbody th { background: #fff; }
.meteogram-table-wrap tbody tr:nth-child(even) th, .meteogram-table-wrap tbody tr:nth-child(even) td { background: #fbfdfe; }
.meteogram-table-wrap tbody tr:hover th, .meteogram-table-wrap tbody tr:hover td { background: #eef7fa; }
.meteogram-table-wrap tbody th strong { display: block; color: var(--ink-950); }
.meteogram-table-wrap tbody th small { display: block; margin-top: 2px; color: var(--ink-500); font-size: 9px; font-weight: 700; }
.meteogram-table-wrap .model-gfs { color: var(--model-gfs); font-weight: 780; }
.meteogram-table-wrap .model-gfs25 { color: var(--model-gfs25); font-weight: 780; }
.meteogram-table-wrap .model-icon { color: var(--model-icon); font-weight: 780; }
.meteogram-table-wrap .model-combined { color: var(--model-combined); font-weight: 780; }
.meteogram-table-wrap table.dual-variable-table { min-width: 1220px; }
.meteogram-table-wrap thead th.variable-group { text-align: center; font-size: 10px; letter-spacing: .05em; }
.meteogram-table-wrap thead th.variable-group.primary { box-shadow: inset 0 -3px 0 rgba(8,127,165,.3); }
.meteogram-table-wrap thead th.variable-group.secondary { box-shadow: inset 0 -3px 0 rgba(91,116,131,.35); }

.table-model-dot { display: inline-block; margin-right: 6px; vertical-align: -1px; }

@media (max-width: 980px) {
  .meteogram-hero { grid-template-columns: 1fr; align-items: start; }
  .meteogram-hero-side { max-width: 500px; }
  .meteogram-controls-card { grid-template-columns: 1fr 1fr; }
  .model-control-group { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .meteogram-page .page-shell { padding-top: 16px; }
  .meteogram-hero { gap: 21px; padding: 27px 21px; border-radius: 24px; }
  .meteogram-hero h1 { font-size: 44px; }
  .meteogram-hero p:not(.section-kicker) { font-size: 14px; }
  .meteogram-hero-side { padding: 17px; }
  .meteogram-controls-card { grid-template-columns: 1fr; gap: 15px; padding: 14px; border-radius: 19px; }
  .meteogram-variable-selects { grid-template-columns: 1fr; }
  .meteogram-mode-row { align-items: center; }
  .meteogram-preset-row { display: grid; gap: 6px; }
  .meteogram-preset-row > div { width: 100%; }
  .model-control-group { grid-column: auto; }
  .meteogram-segmented, .meteogram-model-buttons { width: 100%; overflow-x: auto; }
  .meteogram-window-button { flex: 1; }
  .meteogram-chart-card, .meteogram-table-card { padding: 17px 14px; border-radius: 21px; }
  .meteogram-card-heading { display: grid; gap: 12px; }
  .meteogram-title-line h2, .meteogram-card-heading h2 { font-size: 24px; }
  .meteogram-card-heading.compact > p { text-align: left; }
  .meteogram-legend { justify-content: flex-start; }
  .meteogram-stat { padding: 11px 12px; }
  .meteogram-stat strong { white-space: normal; }
  .meteogram-chart-shell { margin-inline: -4px; border-radius: 16px; }
  .meteogram-chart-note { font-size: 10px; }
  .meteogram-tooltip { top: 70px !important; min-width: 175px; }
  .meteogram-table-wrap { max-height: 480px; }
}

.meteogram-title-line > span:empty { display: none; }

/* v3 · Barra de meteogramas con variable(s) y horizonte (sin selector intermodelos). */
@media (min-width: 981px) {
  .meteogram-controls-card { grid-template-columns: minmax(0, 1fr) auto; }
}

/* v3: descripción meteorológica y detalle horario expandible. */
.block-meta { line-height: 1.4; }
.block-meta span { display: block; }
.hour-detail-toggle { display: inline-flex; align-items: center; margin-top: 14px; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-blue); color: var(--blue-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.hour-detail-toggle:hover { background: #dceff5; }
.hour-detail-toggle:focus-visible { outline: 3px solid rgba(8,127,165,.24); outline-offset: 2px; }


/* V3 · Prototipo de resumen diario simplificado: no altera los meteogramas. */
.day-card-simple { padding-bottom: 16px; }
.day-card-simple .day-icon { margin-bottom: 10px; }
.day-card-simple .day-temp { display: block; }
.day-event { display: block; min-height: 18px; margin-top: 8px; color: var(--ink-500); font-size: 11px; font-weight: 750; }
.day-event.is-relevant { color: var(--blue-dark); }
.day-detail { scroll-margin-top: calc(var(--header-h) + 16px); }
.daily-story-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 13px; }
.daily-story-kicker { color: var(--blue); text-transform: uppercase; letter-spacing: .10em; font-size: 10px; font-weight: 850; }
.daily-story-header h3 { margin: 0; font-size: clamp(23px, 3vw, 28px); letter-spacing: -.035em; }
.daily-story-text { max-width: 850px; margin: 13px 0 0; color: var(--ink-700); font-size: 16px; line-height: 1.6; }
.daily-phase-note { margin: 9px 0 0; color: #925f21; font-size: 12px; font-weight: 700; }
.daily-important { margin-top: 18px; padding: 16px 18px; background: #fff4c2; border: 1px solid #dfb72f; border-left: 5px solid #ba8b08; border-radius: 15px; color: #654c00; }
.daily-important strong { font-size: 13px; }
.daily-important-heading { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.daily-important-level { padding: 3px 9px; border-radius: 999px; background: #eac64c; color: #4f3800; font-size: 12px; font-weight: 850; }
.daily-important p { margin: 7px 0 0; font-size: 13px; line-height: 1.45; }
.daily-important small { display: block; margin-top: 9px; font-size: 10px; line-height: 1.4; opacity: .83; }
.daily-important--yellow { background: #fff4c2; border-color: #dfb72f; border-left-color: #ba8b08; color: #654c00; }
.daily-important--red { background: #fce2e2; border-color: #d94a4a; border-left-color: #bb2222; color: #852020; }
.daily-important--red .daily-important-level { background: #d94a4a; color: #fff; }
.daily-important--violet { background: #eeddfa; border-color: #8d45c5; border-left-color: #7133a4; color: #572780; }
.daily-important--violet .daily-important-level { background: #8d45c5; color: #fff; }
.daily-evolution-header { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.daily-evolution-header h4 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.daily-evolution-header span { color: var(--ink-500); font-size: 11px; }
.daily-evolution { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.day-period { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; padding: 14px 9px 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); text-align: center; cursor: pointer; transition: background .17s ease, border-color .17s ease; }
.day-period:hover, .day-period:focus-visible, .day-period[aria-pressed="true"] { border-color: #75b1c6; background: var(--surface-blue); }
.day-period:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.day-period-label { color: var(--ink-600); font-size: 11px; font-weight: 800; }
.day-period img { width: 38px; height: 38px; object-fit: contain; }
.day-period strong { font-size: 15px; }
.day-period-condition { font-size: 11px; line-height: 1.3; color: var(--ink-600); min-height: 27px; }
.daily-hourly-action { display: flex; justify-content: center; margin-top: 18px; }
.daily-hourly-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; border: 1px solid #abcbd8; border-radius: 999px; background: #f1f9fb; color: var(--blue-dark); cursor: pointer; font-size: 12px; font-weight: 850; }
.daily-hourly-toggle:hover { background: var(--surface-blue); }
.daily-hourly-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#hourDetail { scroll-margin-top: calc(var(--header-h) + 20px); }
.content-section { scroll-margin-top: calc(var(--header-h) + 20px); }
@media (max-width: 720px) {
  .day-detail { padding: 20px 16px; }
  .daily-story-text { font-size: 14px; line-height: 1.55; }
  .daily-evolution-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .daily-evolution { grid-template-columns: repeat(4, minmax(120px, 1fr)); overflow-x: auto; margin-inline: -4px; padding: 0 4px 7px; scrollbar-width: thin; }
  .day-period { padding: 13px 7px 10px; }
  .day-period-condition { font-size: 10px; }
}


/* v3 · Iteración final de próximo días. Se preserva el meteograma. */
.site-header { background: #f7fafb; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line-strong); }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
.day-detail, #hourDetail, .content-section { scroll-margin-top: calc(var(--header-h) + 18px); }
.day-period { position: relative; padding-bottom: 13px; }
.day-period-temperature { white-space: nowrap; }
.day-period-precip { display: block; min-height: 18px; color: var(--blue-dark); font-size: 11px; font-weight: 800; white-space: nowrap; }
.day-period-wind { display: block; width: 100%; padding-top: 6px; border-top: 1px solid var(--line); color: var(--ink-700); font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.period-chevron { position: absolute; right: 7px; bottom: 1px; font-size: 12px; color: var(--ink-500); }
.period-partial { margin-left: 1px; color: var(--ink-500); }
.day-period-condition { display: none; }
.daily-evolution-header span { max-width: 58%; text-align: right; line-height: 1.4; }
.daily-story:not(:has(.daily-story-text, .daily-important, .daily-phase-note)) { margin-bottom: 2px; }
@media (max-width: 720px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .page-shell { padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav { bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
  .day-strip { overflow: visible; margin-inline: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .day-card.day-card-simple { padding: 10px 2px 9px; border-radius: 13px; }
  .day-name { font-size: 11px; }
  .day-date { margin-top: 2px; font-size: 10px; }
  .day-card-simple .day-icon { width: 38px; height: 38px; margin: 7px auto 5px; }
  .day-card-simple .day-temp { font-size: 12px; white-space: nowrap; letter-spacing: -.035em; }
  .day-card-simple .day-event { margin-top: 5px; min-height: 15px; line-height: 1.2; font-size: 9px; font-weight: 800; white-space: nowrap; }
  .day-card-simple .day-badge { right: 1px; top: 1px; width: 13px; height: 13px; font-size: 9px; }
  .day-detail { padding: 17px 11px 18px; }
  .daily-evolution { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; margin: 0; padding: 0; }
  .day-period { min-width: 0; padding: 10px 2px 12px; gap: 5px; border-radius: 10px; }
  .day-period-label { font-size: 10px; white-space: nowrap; }
  .day-period img { width: 33px; height: 33px; }
  .day-period-temperature { font-size: 11px; letter-spacing: -.045em; }
  .day-period-precip { min-height: 15px; font-size: 10px; }
  .day-period-wind { padding-top: 5px; font-size: 10px; letter-spacing: -.02em; }
  .daily-evolution-header { margin-top: 23px; }
  .daily-evolution-header span { max-width: none; text-align: left; font-size: 10px; }
  .forecast-footer { padding-bottom: 18px; }
}
@media (max-width: 350px) {
  .day-strip, .daily-evolution { gap: 3px; }
  .day-card.day-card-simple { padding-inline: 1px; }
  .day-period-temperature { font-size: 10px; }
  .day-period { padding-inline: 1px; }
  .day-period-wind { font-size: 9.5px; }
}


/* V19 · Ajuste tipográfico/espaciado de Próximos días, sin tocar meteogramas. */
.section-heading #daysTitle { margin-top: 0; }
.site-header {
  background: #f7fafb;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}
/* El título principal ya identifica la sección; damos prioridad a días y períodos. */
.day-card.day-card-simple { padding: 13px 12px 11px; }
.day-card-simple .day-name { font-size: 17px; line-height: 1.2; }
.day-card-simple .day-date { margin-top: 3px; font-size: 12px; }
.day-card-simple .day-icon { width: 76px; height: 76px; margin: 5px auto 1px; }
.day-card-simple .day-temp { font-size: 22px; line-height: 1.15; }
.day-card-simple .day-event { min-height: 17px; margin-top: 4px; font-size: 12px; line-height: 1.25; }
.daily-story-header h3 { font-size: clamp(25px, 3vw, 30px); }
.daily-evolution-header h4 { font-size: 19px; }
.day-period { gap: 7px; padding: 13px 8px 17px; }
.day-period-label { font-size: 14px; line-height: 1.2; }
.day-period img { width: 56px; height: 56px; }
.day-period .day-period-temperature { font-size: 19px; line-height: 1.2; }
.day-period .day-period-precip { min-height: 19px; font-size: 13px; }
.day-period .day-period-wind { font-size: 12.5px; padding-top: 7px; }
.period-chevron { bottom: 2px; font-size: 14px; }

@media (max-width: 720px) {
  /* Cuatro días y cuatro períodos completos, sin scroll lateral. */
  .day-card.day-card-simple { padding: 9px 2px 8px; }
  .day-card-simple .day-name { font-size: 12.5px; }
  .day-card-simple .day-date { font-size: 10.5px; }
  .day-card-simple .day-icon { width: 46px; height: 46px; margin: 4px auto 2px; }
  .day-card-simple .day-temp { font-size: 13.5px; letter-spacing: -.035em; }
  .day-card-simple .day-event { min-height: 15px; margin-top: 4px; font-size: 9.5px; }
  .day-period { gap: 5px; padding: 11px 2px 16px; }
  .day-period-label { font-size: 11.5px; }
  .day-period img { width: 50px; height: 50px; }
  .day-period .day-period-temperature { font-size: 15px; letter-spacing: -.04em; }
  .day-period .day-period-precip { min-height: 17px; font-size: 11px; }
  .day-period .day-period-wind { font-size: 10.5px; padding-top: 6px; }
  .daily-evolution-header h4 { font-size: 18px; }
}

@media (max-width: 420px) {
  .day-card-simple .day-icon { width: 43px; height: 43px; }
  .day-period img { width: 46px; height: 46px; }
  .day-period-label { font-size: 10.5px; }
  .day-period .day-period-temperature { font-size: 13px; }
  .day-period .day-period-wind { font-size: 10px; }
}

@media (max-width: 350px) {
  .day-card-simple .day-name { font-size: 11.5px; }
  .day-card-simple .day-icon { width: 41px; height: 41px; }
  .day-card-simple .day-temp { font-size: 12.5px; }
  .day-card-simple .day-event { font-size: 9px; }
  .day-period img { width: 42px; height: 42px; }
  .day-period-label { font-size: 10px; }
  .day-period .day-period-temperature { font-size: 11.5px; }
  .day-period .day-period-precip { font-size: 10px; }
  .day-period .day-period-wind { font-size: 9.5px; }
}


/* v20 · Ajustes puntuales de Próximos días. */
/* Oculta el kicker si por caché quedara una plantilla HTML anterior. */
section[aria-labelledby="daysTitle"] .section-heading .section-kicker { display: none !important; }
section[aria-labelledby="daysTitle"] .section-heading h2 { margin-top: 0; }
.daily-evolution-header { justify-content: flex-start; }
/* El espacio vertical se destina al icono y al dato de viento legible. */
.day-period { gap: 7px; padding-bottom: 16px; }
.day-period img { width: 72px; height: 72px; max-width: 100%; }
.day-period-wind { display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: normal; line-height: 1.2; }
.period-wind-label, .period-gust-label { color: var(--ink-500); font-size: 10px; font-weight: 800; }
.day-period-wind .period-wind-value { color: var(--ink-900); font-size: 13px; line-height: 1.15; font-weight: 850; white-space: nowrap; }
.day-period-wind .period-gust-value { color: var(--ink-900); font-size: 12px; line-height: 1.15; font-weight: 800; white-space: nowrap; }
.period-wind-direction { display: inline-flex; justify-content: center; align-items: center; gap: 4px; color: var(--ink-700); font-size: 12px; font-weight: 750; white-space: nowrap; }
@media (max-width: 720px) {
  .day-period { gap: 5px; padding-bottom: 15px; }
  .day-period img { width: 60px; height: 60px; }
  .period-wind-label, .period-gust-label { font-size: 9px; }
  .day-period-wind .period-wind-value { font-size: 10.5px; }
  .day-period-wind .period-gust-value { font-size: 10px; }
  .period-wind-direction { gap: 2px; font-size: 10px; }
}
@media (max-width: 420px) {
  .day-period img { width: 56px; height: 56px; }
  .day-period-wind .period-wind-value { font-size: 10px; }
  .day-period-wind .period-gust-value { font-size: 9.5px; }
  .period-wind-direction { font-size: 9px; }
}
@media (max-width: 350px) {
  .day-period img { width: 52px; height: 52px; }
  .day-period-wind .period-wind-value { font-size: 9.5px; }
  .day-period-wind .period-gust-value { font-size: 9px; }
  .period-wind-label, .period-gust-label { font-size: 8.5px; }
  .period-wind-direction { font-size: 8.5px; }
}

/* v22 · Selector de las series GFS de precipitación (13 km / 25 km). */
.meteogram-controls-card > .model-control-group { grid-column: 1 / -1; }
.meteogram-controls-card > .model-control-group[hidden] { display: none; }
.meteogram-model-buttons { justify-content: flex-start; width: fit-content; max-width: 100%; }
.meteogram-model-button { flex: 0 1 auto; min-width: 140px; }
.meteogram-model-note { margin: 7px 2px 0; font-size: 11px; line-height: 1.45; color: var(--ink-600); }
@media (max-width: 720px) {
  .meteogram-model-buttons { width: 100%; }
  .meteogram-model-button { flex: 1; min-width: 0; padding-inline: 7px; font-size: 11px; }
}

.meteogram-model-button:disabled { opacity: .45; cursor: not-allowed; }

/* v23 · Dirección predominante en el indicador de viento del hero. */
.hero-metric-direction { display: block; margin-top: 4px; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; line-height: 1.3; }


/* v25 · Señales visuales de atención en Próximos días. */
/* Reservamos una fila superior en TODAS las tarjetas: sin salto vertical entre días. */
.day-strip .day-card.day-card-simple { padding-top: 42px; }
.day-attention-badges {
  position: absolute; top: 11px; right: 12px; left: 10px; z-index: 1;
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  pointer-events: none;
}
.day-attention-dot {
  width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.day-attention-dot svg { width: 16px; height: 16px; }
.day-attention-dot--yellow { background: #f2cf32; border-color: #cfac12; color: #5c4300; }
.day-attention-dot--orange { background: #ef9b3a; border-color: #c6751b; color: #5d3204; }
.day-attention-dot--red { background: #cf4242; border-color: #a52a2a; color: #ffffff; }
/* Si el tipo de PP es incierto, conservar el signo de interrogación en el lado opuesto. */
.day-card.day-card-simple .day-badge { left: 10px; right: auto; }

/* Solo el dato de ráfagas se resalta: no colorear todo el bloque de seis horas. */
.day-period-wind .period-gust-value.period-gust-value--yellow-soft,
.day-period-wind .period-gust-value.period-gust-value--yellow,
.day-period-wind .period-gust-value.period-gust-value--red,
.day-period-wind .period-gust-value.period-gust-value--violet {
  display: inline-block; border: 1px solid transparent;
  padding: 3px 8px; border-radius: 8px; font-weight: 900;
}
.day-period-wind .period-gust-value.period-gust-value--yellow-soft { background: #fff0c6; border-color: #e3c064; color: #735000; }
.day-period-wind .period-gust-value.period-gust-value--yellow { background: #f9d957; border-color: #c59d13; color: #4c3700; }
.day-period-wind .period-gust-value.period-gust-value--red { background: #fbe0df; border-color: #d75f5b; color: #a32121; }
.day-period-wind .period-gust-value.period-gust-value--violet { background: #eedcfa; border-color: #a86bd3; color: #6c2899; }
@media (max-width: 720px) {
  .day-strip .day-card.day-card-simple { padding-top: 31px; }
  .day-attention-badges { top: 6px; right: 6px; left: 6px; gap: 4px; }
  .day-attention-dot { width: 24px; height: 24px; }
  .day-attention-dot svg { width: 13px; height: 13px; }
  .day-card.day-card-simple .day-badge { left: 2px; right: auto; top: 4px; }
  /* En pantalla estrecha el badge de atención ocupa la esquina superior;
     la incertidumbre de fase queda disponible en la etiqueta accesible. */
  .day-card.day-card-simple:has(.day-attention-dot) .day-badge { display: none; }
  .day-period-wind .period-gust-value.period-gust-value--yellow-soft,
  .day-period-wind .period-gust-value.period-gust-value--yellow,
  .day-period-wind .period-gust-value.period-gust-value--red,
  .day-period-wind .period-gust-value.period-gust-value--violet { padding: 3px 4px; }
}


/* v26 · Identificación visible del punto de pronóstico y su altitud. */
.city-picker-button {
  min-height: 52px; gap: 11px; padding: 6px 13px;
  border-color: #9ac8d8; background: #eaf7fa;
  box-shadow: 0 4px 15px rgba(8, 104, 142, .13);
}
.city-picker-button:hover { border-color: var(--blue); background: #e0f3f8; }
.city-picker-button:focus-visible { outline: 3px solid rgba(8,127,165,.25); outline-offset: 3px; }
.city-picker-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.city-picker-kicker { font-size: 9px; font-weight: 900; line-height: 1.1; letter-spacing: .12em; color: var(--blue-dark); text-transform: uppercase; }
.city-picker-main { display: flex; min-width: 0; align-items: center; gap: 7px; }
.city-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 850; line-height: 1.2; }
.city-picker-elevation { flex: 0 0 auto; padding: 3px 6px; border: 1px solid #c7e6ed; border-radius: 6px; background: #fff; color: #06637e; font-size: 10px; font-weight: 850; line-height: 1.15; }
.city-picker-elevation[hidden], .hero-place-altitude[hidden] { display: none; }
.city-option-main { display: grid; min-width: 0; gap: 3px; }
.city-option-height { color: var(--ink-600); font-size: 11px; font-weight: 650; }
.city-picker .chevron { flex: 0 0 auto; }

.hero .eyebrow-row { align-items: flex-start; }
.hero-place { min-width: 0; display: grid; justify-items: start; }
.hero-place-kicker { color: #9fe6ed; font-size: 10px; font-weight: 850; line-height: 1.15; letter-spacing: .15em; text-transform: uppercase; }
.hero-place-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 7px; }
.hero-place-name { color: #fff; font-size: clamp(25px, 3vw, 33px); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.hero-place-altitude { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid rgba(255,255,255,.33); border-radius: 999px; color: #fff; background: rgba(255,255,255,.14); font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.hero .hero-place-period { margin-top: 10px; color: #a7dce7; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.hero .updated-chip { flex: 0 0 auto; margin-top: 1px; }
.hero .hero-condition { margin-top: 26px; }

@media (max-width: 720px) {
  .city-picker-button { min-height: 43px; max-width: min(195px, calc(100vw - 185px)); gap: 6px; padding: 5px 8px; }
  .city-picker-copy { gap: 2px; }
  .city-picker-kicker { font-size: 8px; }
  .city-picker-main { gap: 4px; }
  .city-picker-name { font-size: 11.5px; }
  .city-picker-elevation { padding: 2px 4px; font-size: 9px; }
  .hero-place-kicker { font-size: 9px; }
  .hero-place-name { font-size: clamp(23px, 6.1vw, 29px); }
  .hero-place-main { gap: 7px; }
  .hero-place-altitude { padding: 4px 7px; font-size: 10px; }
  .hero .hero-place-period { margin-top: 8px; font-size: 9.5px; }
  .hero .hero-condition { margin-top: 21px; }
}
@media (max-width: 365px) {
  .city-picker-button { max-width: calc(100vw - 178px); }
  .city-picker-elevation { font-size: 8px; }
  .hero-place-name { font-size: 23px; }
}

/* v30 · El mismo Evento destacado puede mostrarse dentro de cada día afectado. */
.daily-featured-event { margin-top: 20px; }
.daily-featured-event-title {
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.event-card--daily { box-shadow: none; }
@media (max-width: 720px) {
  .daily-featured-event { margin-top: 16px; }
  .daily-featured-event-title { margin-bottom: 7px; font-size: 10px; }
}

/* v31 · Panel diario unificado para episodios significativos. */
.daily-event-panel {
  margin-top: 18px;
  padding: 17px 19px 18px;
  border: 1px solid #dfb72f;
  border-left: 5px solid #ba8b08;
  border-radius: 15px;
  background: #fff4c2;
  color: #654c00;
}
.daily-event-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 14px;
}
.daily-event-panel-heading strong { font-size: 13px; }
.daily-event-panel-heading span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .025em;
  opacity: .78;
}
.daily-event-panel h4 {
  margin: 7px 0 0;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -.015em;
  color: inherit;
}
.daily-event-panel p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.48;
}
.daily-event-panel small {
  display: block;
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.42;
  opacity: .84;
}
.daily-event-panel--yellow {
  background: #fff4c2;
  border-color: #dfb72f;
  border-left-color: #ba8b08;
  color: #654c00;
}
.daily-event-panel--red {
  background: #fce2e2;
  border-color: #d94a4a;
  border-left-color: #bb2222;
  color: #852020;
}
.daily-event-panel--violet {
  background: #eeddfa;
  border-color: #8d45c5;
  border-left-color: #7133a4;
  color: #572780;
}
@media (max-width: 720px) {
  .daily-event-panel { margin-top: 16px; padding: 15px 15px 16px; }
  .daily-event-panel-heading { display: block; }
  .daily-event-panel-heading span { display: block; margin-top: 3px; }
  .daily-event-panel h4 { font-size: 16px; }
  .daily-event-panel p { font-size: 12.5px; }
}


/* v33 · Pulido de paneles de eventos y avisos diarios. */
.daily-event-panel-heading--range-only { justify-content: flex-end; }
.daily-event-panel-heading--range-only + h4 { margin-top: 3px; }
.daily-event-panel small {
  font-size: 12px;
  line-height: 1.48;
  opacity: .90;
}
@media (max-width: 720px) {
  .daily-event-panel-heading--range-only { display: flex; justify-content: flex-end; }
  .daily-event-panel-heading--range-only span { margin-top: 0; }
  .daily-event-panel small { font-size: 11.5px; line-height: 1.46; }
}

/* v36 · Avisos de anticipación legibles también en paneles diarios (viento). */
.daily-important small {
  font-size: 12px;
  line-height: 1.48;
  opacity: .90;
}
@media (max-width: 720px) {
  .daily-important small { font-size: 11.5px; line-height: 1.46; }
}


/* v39 · Próximos días colapsados hasta que el usuario seleccione una jornada */
.day-selection-hint {
  margin: 11px 0 0;
  color: var(--ink-500);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}
.day-selection-hint::before {
  content: "⌄";
  display: inline-block;
  margin-right: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .day-selection-hint {
    margin-top: 8px;
    font-size: 11.5px;
  }
}


/* ============================================================
   INFORMES
   ============================================================ */
.reports-page .page-shell { padding-top: 30px; }
.reports-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 40px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(33, 183, 201, .28), transparent 18rem),
    linear-gradient(135deg, #092c43 0%, #0b4864 62%, #087fa5 100%);
  box-shadow: var(--shadow-lg);
}
.reports-hero .section-kicker { margin: 0 0 10px; color: #8ee8f1; }
.reports-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 66px); line-height: .98; letter-spacing: -.045em; }
.reports-hero p:not(.section-kicker) { max-width: 760px; margin: 16px 0 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.6; }
.reports-status { margin-top: 24px; }
.reports-loading, .reports-error, .reports-empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}
.reports-error { display: grid; text-align: center; }
.reports-error strong { color: var(--ink-950); }
.reports-error code { padding: 2px 5px; border-radius: 5px; background: var(--surface-soft); }
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.report-card {
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s ease;
}
.report-card:hover { transform: translateY(-2px); border-color: #bdd6e2; box-shadow: 0 18px 38px rgba(8,35,53,.12); }
.report-card.is-selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(8,127,165,.08), var(--shadow-sm); }
.report-cover { overflow: hidden; border-radius: 24px; background: #dcecf2; }
.report-cover img { width: 100%; height: auto; object-fit: cover; }
.report-cover.compact { aspect-ratio: 16 / 9; border-radius: 0; }
.report-cover.compact img { width: 100%; height: 100%; object-fit: cover; }
.report-cover-placeholder {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 7px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.18), transparent 12rem),
    linear-gradient(145deg, #16465f, #087fa5 72%, #20aebf);
}
.report-cover-placeholder.compact { min-height: 0; padding: 20px; }
.report-cover-placeholder span { font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; opacity: .76; }
.report-cover-placeholder strong { font-size: 22px; line-height: 1.1; }
.report-cover-placeholder small { max-width: 480px; font-size: 12px; line-height: 1.45; opacity: .76; }
.report-cover-placeholder.compact strong { font-size: 18px; }
.report-cover-placeholder.compact small { font-size: 10px; }
.report-card-body { display: grid; gap: 10px; padding: 18px 20px 20px; }
.report-card-meta, .report-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--ink-500); font-size: 11px; font-weight: 750; }
.report-category { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; color: var(--blue-dark); background: var(--surface-blue); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.report-card-title { color: var(--ink-950); font-size: 21px; line-height: 1.12; letter-spacing: -.02em; }
.report-card-summary { color: var(--ink-700); font-size: 13px; line-height: 1.5; }
.report-card-location { min-height: 16px; color: var(--ink-500); font-size: 11px; font-weight: 750; }
.report-detail {
  margin-top: 28px;
  padding: 34px 38px 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.report-detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.report-close { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); cursor: pointer; color: var(--ink-700); font-size: 11px; font-weight: 800; }
.report-close:hover { background: var(--surface-blue); color: var(--blue-dark); }
.report-detail-header { max-width: 900px; margin: 26px 0 28px; }
.report-detail-header h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.045em; }
.report-detail-header p { max-width: 820px; margin: 16px 0 0; color: var(--ink-700); font-size: 18px; line-height: 1.55; }
.report-detail > .report-cover {
  width: min(100%, 620px);
  margin: 0 auto 34px;
}
.report-detail > .report-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.report-body { max-width: 820px; margin: 0 auto; color: var(--ink-800); font-size: 16px; line-height: 1.75; }
.report-body p { margin: 0 0 20px; }
.report-body h2 { margin: 34px 0 12px; color: var(--ink-950); font-size: 23px; line-height: 1.2; letter-spacing: -.02em; }
.report-subheading { font-weight: 850; }
.report-body ul { margin: 0 0 24px; padding-left: 22px; }
.report-body li { margin: 8px 0; }
.report-inline-figure { margin: 30px 0; }
.report-inline-figure img { width: 100%; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-soft); }
.report-inline-figure-placeholder { min-height: 340px; display: grid; place-content: center; gap: 8px; padding: 24px; border: 1px dashed #9fc5d3; border-radius: 22px; background: linear-gradient(145deg, #edf7fa, #f7fbfc); color: var(--ink-600); text-align: center; }
.report-inline-figure-placeholder span { font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.report-inline-figure-placeholder strong { color: var(--ink-800); font-size: 23px; }
.report-inline-figure figcaption { margin-top: 9px; color: var(--ink-500); font-size: 12px; line-height: 1.5; }
.report-note { margin: 26px 0; padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; background: var(--surface-blue); color: var(--ink-700); font-size: 14px; line-height: 1.6; }

@media (max-width: 980px) {
  .reports-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .reports-page .page-shell { padding-top: 16px; }
  .reports-hero { padding: 28px 23px; border-radius: 24px; }
  .reports-hero h1 { font-size: 44px; }
  .reports-hero p:not(.section-kicker) { font-size: 14px; }
  .reports-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  .report-card { display: grid; grid-template-columns: 118px 1fr; border-radius: 20px; }
  /* Miniaturas de Informes: el recorte llena toda la columna móvil. */
  .report-card .report-cover.compact {
    position: relative;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 0;
    border-radius: 0;
  }
  .report-card .report-cover.compact img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .report-cover-placeholder.compact { padding: 14px; }
  .report-cover-placeholder.compact strong { font-size: 14px; }
  .report-cover-placeholder.compact small { display: none; }
  .report-card-body { padding: 15px 15px 15px 16px; }
  .report-card-title { font-size: 17px; }
  .report-card-summary { font-size: 12px; }
  .report-detail { margin-top: 18px; padding: 24px 18px 34px; border-radius: 24px; }
  .report-detail-topline { align-items: flex-start; }
  .report-detail-header { margin: 22px 0; }
  .report-detail-header h1 { font-size: 36px; }
  .report-detail-header p { font-size: 15px; }
  .report-cover-placeholder { min-height: 230px; padding: 20px; border-radius: 20px; }
  .report-cover-placeholder strong { font-size: 20px; }
  .report-body { font-size: 15px; line-height: 1.68; }
  .report-body h2 { font-size: 23px; }
  .report-inline-figure-placeholder { min-height: 220px; }
  .report-inline-figure-placeholder strong { font-size: 19px; }
  .mobile-nav-link { font-size: 8.5px; }
}


/* V50 · Microdescripción cualitativa en las tarjetas de Próximos días. */
.day-card-simple .day-event {
  min-height: 34px;
  margin-top: 6px;
  padding-inline: 4px;
  color: var(--ink-700);
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.28;
  white-space: normal;
  text-wrap: balance;
}
.day-card-simple .day-event.is-relevant { color: var(--blue-dark); }

@media (max-width: 720px) {
  .day-card-simple .day-event {
    min-height: 31px;
    margin-top: 4px;
    padding-inline: 1px;
    font-size: 8.5px;
    line-height: 1.2;
    white-space: normal;
    text-wrap: pretty;
  }
}

@media (max-width: 420px) {
  .day-card-simple .day-event {
    min-height: 30px;
    font-size: 8px;
  }
}



/* v98.1 · Ajuste fino de jerarquía vertical en portada. */
.current-hourly-section + .observations-section {
  margin-top: 28px;
}

/* v64 · Botón visible de evolución horaria inmediatamente debajo del hero. */
.current-hourly-section {
  margin-top: 18px;
}
.current-hourly-launcher {
  display: flex;
  justify-content: center;
  padding: 0 0 4px;
}
.current-hourly-toggle {
  appearance: none;
  border: 1.5px solid rgba(22, 143, 190, .42);
  background: #ffffff;
  color: var(--blue-dark);
  border-radius: 999px;
  min-height: 52px;
  padding: 0 26px;
  font: inherit;
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(23, 74, 100, .08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.current-hourly-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 143, 190, .72);
  background: rgba(235, 248, 252, .9);
  box-shadow: 0 10px 28px rgba(23, 74, 100, .12);
}
.current-hourly-toggle:focus-visible {
  outline: 3px solid rgba(22, 143, 190, .22);
  outline-offset: 3px;
}
.current-hourly-toggle[aria-expanded="true"] {
  background: rgba(235, 248, 252, .92);
}
.current-hourly-content {
  margin-top: 18px;
}
.current-hourly-note {
  margin: 0;
}
.current-hourly-section.is-collapsed {
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .current-hourly-section + .observations-section {
    margin-top: 24px;
  }
  .current-hourly-section {
    margin-top: 14px;
  }
  .current-hourly-launcher {
    justify-content: stretch;
  }
  .current-hourly-toggle {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    font-size: 14px;
  }
  .current-hourly-heading {
    align-items: flex-end;
  }
}

@media (max-width: 480px) {
  .current-hourly-toggle {
    font-size: 13px;
  }
}


/* v75 · El evento destacado hereda visualmente su severidad. */
.event-card {
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: transparent;
}
.event-card--yellow {
  border-color: #e4bd38;
  background: linear-gradient(115deg, #fffdf5, #fff6cf);
}
.event-card--yellow::before { background: #d8a900; }
.event-card--yellow .event-time { color: #8b6700; }

.event-card--red {
  border-color: #e25353;
  background: linear-gradient(115deg, #fffafa, #ffe7e7);
}
.event-card--red::before { background: #cf2929; }
.event-card--red .event-time { color: #a52323; }

.event-card--violet {
  border-color: #9c54d5;
  background: linear-gradient(115deg, #fcf8ff, #f0ddff);
}
.event-card--violet::before { background: #7b2eb5; }
.event-card--violet .event-time { color: #652292; }

.event-card--yellow .event-data div,
.event-card--red .event-data div,
.event-card--violet .event-data div {
  background: rgba(255,255,255,.82);
}


/* v77 · Misma estética del Evento destacado para alertas dentro de Próximos días. */
.daily-event-panel,
.daily-important {
  position: relative;
  overflow: hidden;
  border-left-width: 1px;
  box-shadow: 0 6px 18px rgba(8,35,53,.055);
}

.daily-event-panel::before,
.daily-important::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
}

/* Amarillo */
.daily-event-panel--yellow,
.daily-important--yellow {
  border-color: #e4bd38;
  background: linear-gradient(115deg, #fffdf5, #fff6cf);
  color: var(--ink-800);
}
.daily-event-panel--yellow::before,
.daily-important--yellow::before {
  background: #d8a900;
}
.daily-event-panel--yellow .daily-event-panel-heading,
.daily-event-panel--yellow h4,
.daily-important--yellow .daily-important-heading {
  color: #7b5c00;
}

/* Rojo */
.daily-event-panel--red,
.daily-important--red {
  border-color: #e25353;
  background: linear-gradient(115deg, #fffafa, #ffe7e7);
  color: var(--ink-800);
}
.daily-event-panel--red::before,
.daily-important--red::before {
  background: #cf2929;
}
.daily-event-panel--red .daily-event-panel-heading,
.daily-event-panel--red h4,
.daily-important--red .daily-important-heading {
  color: #a52323;
}

/* Violeta */
.daily-event-panel--violet,
.daily-important--violet {
  border-color: #9c54d5;
  background: linear-gradient(115deg, #fcf8ff, #f0ddff);
  color: var(--ink-800);
}
.daily-event-panel--violet::before,
.daily-important--violet::before {
  background: #7b2eb5;
}
.daily-event-panel--violet .daily-event-panel-heading,
.daily-event-panel--violet h4,
.daily-important--violet .daily-important-heading {
  color: #652292;
}

/* Mantener los textos secundarios legibles y con la misma jerarquía del panel superior. */
.daily-event-panel p,
.daily-important p {
  color: var(--ink-700);
}
.daily-event-panel small,
.daily-important small {
  color: var(--ink-600);
  opacity: 1;
}


/* v79 · Icono de advertencia consistente dentro de los badges diarios. */
.day-attention-badge {
  gap: 5px;
}
.day-attention-badge-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: block;
  overflow: visible;
}
@media (max-width: 720px) {
  .day-attention-badge {
    gap: 3px;
  }
  .day-attention-badge-icon {
    width: 12.5px;
    height: 12.5px;
  }
}


/* v83 · Atención visible para el día actual, inmediatamente debajo del hero. */
.current-attention-section {
  margin-top: 20px;
}
.current-attention-section[hidden] {
  display: none;
}
.current-attention-section .daily-important {
  margin-top: 0;
}
.current-attention-card {
  min-height: 0;
}
@media (max-width: 720px) {
  .current-attention-section {
    margin-top: 14px;
  }
}

/* ============================================================
   PRONÓSTICO EXTENDIDO · DÍAS 6 A 9
   Producto diario separado del detalle operativo de corto plazo.
   ============================================================ */
.extended-forecast-section {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
}
.extended-forecast-heading { align-items: flex-end; }
.extended-forecast-note {
  margin: 0;
  max-width: 360px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
  line-height: 1.4;
}
.extended-forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.extended-card {
  min-width: 0;
  padding: 18px 18px 17px;
  border: 1px solid #d5e2e8;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdfe 0%, #f5f9fb 100%);
  box-shadow: 0 5px 16px rgba(8, 35, 53, .04);
}
.extended-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.extended-card-day {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}
.extended-card-date {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
}
.extended-card-weather {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.extended-card-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
}
.extended-card-temp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 13px;
  align-items: end;
}
.extended-card-temp span { display: grid; gap: 2px; }
.extended-card-temp small {
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.extended-card-temp strong {
  color: var(--ink-950);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.035em;
}
.extended-card-summary {
  margin: 14px 0 0;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.48;
}
.extended-card-wind {
  margin: 13px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .extended-forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .extended-forecast-section { margin-top: 38px; padding-top: 27px; }
  .extended-forecast-heading { display: grid; gap: 7px; }
  .extended-forecast-note { max-width: none; text-align: left; font-size: 11px; }
  /* Misma grilla y superficie visual que Próximos días en celulares. */
  .extended-forecast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }
  .extended-card {
    padding: 14px 12px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 5px 16px rgba(8,35,53,.045);
  }
  .extended-card-day { font-size: 15px; }
  .extended-card-weather { gap: 8px; margin-top: 10px; }
  .extended-card-icon { width: 50px; height: 50px; flex-basis: 50px; }
  .extended-card-temp { gap: 8px; }
  .extended-card-temp strong { font-size: 17px; }
  .extended-card-summary { margin-top: 10px; font-size: 11.5px; line-height: 1.43; }
  .extended-card-wind { margin-top: 10px; padding-top: 8px; font-size: 10.5px; }
}


/* ============================================================
   MAPA DE PORTADA · precipitación restante del día
   ============================================================ */
.forecast-map-section[hidden] { display: none; }
.forecast-map-heading { align-items: flex-end; }
.forecast-map-period {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}
.forecast-map-card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #eef4f7;
  box-shadow: var(--shadow-sm);
}
.forecast-map-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 68svh;
  margin: 0 auto;
  object-fit: contain;
  background: #eef4f7;
}
.forecast-map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  color: var(--ink-500);
  font-size: 10.5px;
  font-weight: 720;
}
.forecast-map-fallback {
  color: #8a6512;
  font-weight: 800;
}

@media (max-width: 720px) {
  .forecast-map-heading { align-items: flex-start; }
  .forecast-map-period { max-width: 44%; font-size: 10.5px; line-height: 1.35; }
  .forecast-map-card { border-radius: 20px; }
  .forecast-map-image { max-height: 60svh; }
  .forecast-map-caption { align-items: flex-start; flex-direction: column; gap: 4px; padding: 9px 12px; }
}



.forecast-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 8px 0 12px;
}
.forecast-map-palette-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.forecast-map-palette-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-1);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.2;
  min-width: 220px;
  box-shadow: var(--shadow-sm);
}
.forecast-map-palette-select:focus {
  outline: 2px solid rgba(59,130,246,.2);
  outline-offset: 1px;
}
@media (max-width: 720px) {
  .forecast-map-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 6px;
  }
  .forecast-map-palette-select {
    min-width: min(100%, 260px);
  }
}


/* ============================================================
   MAPA DENTRO DEL DETALLE DIARIO · precip_daily
   ============================================================ */
.daily-map-block {
  margin: 24px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.daily-map-block[hidden] { display: none; }
.daily-map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 4px;
}
.daily-map-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.daily-map-heading h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.daily-map-toolbar {
  margin-top: 10px;
}
.daily-map-card {
  margin-inline: auto;
}
.daily-map-image-frame { position: relative; }

@media (max-width: 720px) {
  .daily-map-block {
    margin: 20px 0 24px;
    padding-top: 18px;
  }
  .daily-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .daily-map-heading .forecast-map-period {
    max-width: none;
    text-align: left;
  }
  .daily-map-heading h4 {
    font-size: 18px;
  }
}


/* ==========================================================================
   SECCIÓN MAPAS · esquema por Pronóstico / Riesgos / Análisis
   ========================================================================== */

.maps-page { display: none; }
.maps-page.is-visible { display: block; }

.maps-page .page-shell { padding-top: 20px; }
.maps-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.maps-page-hero h1 {
  margin: 0;
  color: var(--ink-950);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.maps-explorer-app[hidden] { display: none; }
.maps-group-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.maps-group-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-700);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}
.maps-group-tab:hover { border-color: rgba(8,127,165,.44); background: var(--surface-blue); }
.maps-group-tab.is-active {
  border-color: rgba(8,127,165,.62);
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 5px 13px rgba(8,72,104,.16);
}

.maps-controls-card {
  margin-bottom: 12px;
  padding: 13px 15px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
}
.maps-scheme-controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr);
  gap: 12px;
  align-items: start;
}
.maps-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.maps-field > span {
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.maps-product-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.maps-product-button {
  display: inline-flex;
  min-height: 42px;
  min-width: 128px;
  flex: 1 1 128px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-700);
  cursor: pointer;
  text-align: left;
}
.maps-product-button:hover { border-color: rgba(8,127,165,.44); background: var(--surface-blue); }
.maps-product-button.is-active {
  border-color: rgba(8,127,165,.62);
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 5px 13px rgba(8,72,104,.16);
}
.maps-product-button > span { font-size: 12px; font-weight: 850; line-height: 1.12; }
.maps-product-button > small { color: currentColor; font-size: 8.5px; font-weight: 700; opacity: .72; }

.maps-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 40px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: var(--surface);
  color: var(--ink-900);
  font-weight: 750;
}
.maps-field select:focus {
  border-color: rgba(8,127,165,.55);
  box-shadow: 0 0 0 3px rgba(8,127,165,.09);
}
.maps-field select:disabled { color: var(--ink-600); opacity: .78; }

.maps-period-buttons {
  display: flex;
  min-height: 42px;
  gap: 6px;
  align-items: stretch;
  flex-wrap: wrap;
}
.maps-period-buttons[hidden] { display: none; }
.maps-period-button,
.maps-scheme-period-button {
  display: inline-flex;
  min-height: 42px;
  min-width: 82px;
  flex: 1 1 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-700);
  cursor: pointer;
}
.maps-period-button:hover,
.maps-scheme-period-button:hover { border-color: rgba(8,127,165,.44); background: var(--surface-blue); }
.maps-period-button.is-active,
.maps-scheme-period-button.is-active {
  border-color: rgba(8,127,165,.62);
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 5px 13px rgba(8,72,104,.16);
}
.maps-period-button > span,
.maps-scheme-period-button > span { font-size: 12px; font-weight: 850; line-height: 1.12; white-space: nowrap; }
.maps-period-button > small,
.maps-scheme-period-button > small { color: currentColor; font-size: 9px; font-weight: 650; line-height: 1.1; opacity: .76; }

.maps-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.maps-current-title { margin: 0; color: var(--ink-900); font-size: 17px; font-weight: 850; }
.maps-current-description { margin: 3px 0 0; color: var(--ink-600); font-size: 11px; line-height: 1.35; }
.maps-availability-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f4;
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.maps-availability-badge.is-available { background: var(--surface-blue); color: var(--blue-dark); }

/* Panorama y Explorador comparten un único criterio de tamaño adaptable.
   Se reserva espacio para los controles y la leyenda sin recortar la imagen. */
.maps-explorer-app {
  --maps-viewer-target-height: clamp(350px, calc(100svh - 320px), 860px);
}
.maps-viewer-panel {
  width: min(100%, calc(var(--maps-viewer-target-height) * var(--maps-viewer-ratio, 1.418)));
  max-width: 100%;
  margin-inline: auto;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow-sm);
}
.maps-viewer-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: var(--maps-viewer-ratio, 1.418);
  overflow: hidden;
  border-radius: 19px 19px 13px 13px;
  background: #dce7ec;
}
.maps-viewer-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  will-change: transform;
  cursor: grab;
  touch-action: none;
}
/* Móvil: al tamaño inicial un dedo desplaza la página; con zoom, el mapa. */
@media (max-width: 720px) {
  .maps-viewer-stage { touch-action: pan-y; }
  .maps-viewer-stage.is-zoomed { touch-action: none; }
}
.maps-viewer-stage.is-dragging { cursor: grabbing; }
.maps-viewer-stage img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.maps-viewer-layer { position: absolute; left: 0; top: 0; }
.maps-viewer-regional { position: relative; }
.maps-viewer-detail { opacity: 0; transition: opacity 180ms ease; }
.maps-viewer-stage.detail-visible .maps-viewer-detail { opacity: 1; }
.maps-viewer-chrome { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
/* La vista cartográfica no ocupa todo el ancho del PNG interactivo.
   El recuadro geográfico termina ~7.5% antes del borde del visor: situar
   aquí la firma, no en la esquina del contenedor. */
.maps-fixed-brand {
  position: absolute;
  right: calc(7.5% + 10px);
  bottom: 9px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(15,23,42,.62);
  color: #f8fafc;
  font-size: clamp(9px, .72vw, 11px);
  font-weight: 850;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
}
.maps-fixed-legend { position: relative; width: min(74%, 700px); margin: 8px auto 1px; padding: 5px 8px 4px; }
.maps-fixed-legend[hidden] { display: none; }
.maps-fixed-legend-title { margin: 0 0 4px; color: var(--ink-800); text-align: center; font-size: 13px; font-weight: 500; }
/* Enmarcar solo la escala rectangular; la flecha de desborde queda sin recuadro. */
.maps-fixed-legend-bar { position: relative; display: flex; width: 100%; height: 10px; border: 0; }
.maps-fixed-legend-bar::after {
  content: "";
  position: absolute;
  inset: 0 14px 0 0;
  border: 1px solid rgba(8,35,53,.34);
  border-right: 0;
  pointer-events: none;
}
.maps-fixed-legend-segment { flex: 1 1 0; min-width: 0; }
.maps-fixed-legend-over { width: 14px; flex: 0 0 14px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.maps-fixed-legend-ticks { position: relative; height: 19px; margin-right: 14px; }
.maps-fixed-legend-tick { position: absolute; top: 3px; transform: translateX(-50%); color: var(--ink-900); font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
.maps-viewer-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--ink-600);
  text-align: center;
  font-weight: 800;
}
.maps-placeholder-content { display: grid; justify-items: center; gap: 7px; max-width: 520px; }
.maps-placeholder-content > span { padding: 5px 9px; border-radius: 999px; background: rgba(8,127,165,.11); color: var(--blue-dark); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.maps-placeholder-content > strong { color: var(--ink-900); font-size: clamp(22px, 3vw, 34px); line-height: 1.05; letter-spacing: -.03em; }
.maps-placeholder-content > small { color: var(--blue-dark); font-size: 12px; font-weight: 800; }
.maps-placeholder-content > p { margin: 3px 0 0; color: var(--ink-600); font-size: 13px; font-weight: 650; line-height: 1.45; }

@media (max-width: 800px) {
  .maps-page .page-shell { padding-top: 18px; }
  .maps-page-hero { margin-bottom: 12px; }
  .maps-scheme-controls-grid { grid-template-columns: 1fr; }
  .maps-product-grid,
  .maps-period-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .maps-product-button { min-width: 142px; flex: 0 0 auto; }
  .maps-period-button,
  .maps-scheme-period-button { min-width: 92px; flex: 0 0 auto; }
  .maps-fixed-legend { width: min(90%, 520px); }
  .maps-fixed-brand { right: calc(7.5% + 8px); bottom: 7px; }
}

/* Escala numérica de los mapas: legible en celular, sin cambiar
   los niveles ni la distribución proporcional de los colores. */
@media (max-width: 720px) {
  .maps-fixed-legend {
    width: min(100%, 520px);
    padding: 5px 4px 5px;
  }
  .maps-fixed-legend-title {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.2;
  }
  .maps-fixed-legend-bar { height: 12px; }
  .maps-fixed-legend-ticks { height: 19px; }
  .maps-fixed-legend-tick {
    top: 4px;
    color: var(--ink-900);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -.035em;
  }
  /* Anclar los extremos hacia adentro para que no queden cortados. */
  .maps-fixed-legend-tick:first-child { transform: none; }
  .maps-fixed-legend-tick:last-child { transform: translateX(-50%); }
}

@media (max-width: 520px) {
  .maps-page-hero h1 { font-size: 38px; }
  .maps-page-hero > div:first-child > p:last-child { font-size: 13px; }
  .maps-controls-card { padding: 12px; border-radius: 18px; }
  .maps-meta-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .maps-viewer-panel { width: 100%; border-radius: 18px; }
  .maps-viewer-viewport { border-radius: 16px 16px 11px 11px; }
  .maps-fixed-brand { font-size: 8px; }
}


/* v104: portada unificada; un único panel en escritorio, mapa integrado. */
@media (min-width: 1020px) {
  #forecastApp > .hero.has-integrated-map {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
    column-gap: 0;
    isolation: isolate;
  }
  .hero.has-integrated-map > .hero-main {
    min-width: 0;
    padding: 27px 26px 26px 31px;
  }
  .hero.has-integrated-map .hero-condition {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 15px;
    margin: 26px 0 24px;
  }
  .hero.has-integrated-map .hero-icon-wrap {
    width: 86px;
    height: 86px;
    border-radius: 27px;
  }
  .hero.has-integrated-map .hero-icon { width: 70px; height: 70px; }
  .hero.has-integrated-map h1 { font-size: clamp(34px, 3.5vw, 49px); }
  .hero.has-integrated-map .hero-summary { font-size: 13px; line-height: 1.5; }
  .hero.has-integrated-map .temperature-main { font-size: 32px; }
  .hero.has-integrated-map .hero-metrics { margin-top: auto; }
  .hero.has-integrated-map .hero-metric { padding-top: 15px; }
  .hero.has-integrated-map > #homeMapSection {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin: 0;
    padding: 23px 25px 22px 15px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    border: 0;
  }
  .hero.has-integrated-map > #homeMapSection[hidden] { display: none; }
  .hero.has-integrated-map .forecast-map-heading { margin-bottom: 10px; align-items: baseline; gap: 10px; }
  .hero.has-integrated-map .forecast-map-heading .section-kicker { color: #9fe6ed; font-size: 9px; }
  .hero.has-integrated-map .forecast-map-heading h2 { font-size: 18px; color: #fff; margin-top: 5px; }
  .hero.has-integrated-map .forecast-map-period { font-size: 10px; color: rgba(255,255,255,.8); }
  .hero.has-integrated-map .forecast-map-card {
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: none;
  }
  .hero.has-integrated-map .forecast-map-image { max-height: 390px; }
  .hero.has-integrated-map .forecast-map-caption { min-height: 30px; padding: 7px 10px; }
}
@media (min-width: 1020px) and (max-width: 1180px) {
  .hero.has-integrated-map .hero-place-name { font-size: 25px; }
  .hero.has-integrated-map .hero-main { padding-left: 23px; padding-right: 20px; }
  .hero.has-integrated-map > #homeMapSection { padding-right: 18px; }
}

/* v105 · Tipografía legible y portada compacta de un solo panel (escritorio). */
@media (min-width: 1020px) {
  .hero.has-integrated-map > .hero-main {
    padding: 25px 27px 24px 31px;
  }
  .hero.has-integrated-map .hero-place-kicker,
  .hero.has-integrated-map .hero-place-period { font-size: 12px; }
  .hero.has-integrated-map .hero-place-name { font-size: clamp(29px, 2.8vw, 38px); }
  .hero.has-integrated-map .hero-place-altitude { font-size: 12px; }
  .hero.has-integrated-map .updated-chip { font-size: 12px; }
  .hero.has-integrated-map .hero-condition {
    grid-template-columns: 94px minmax(0,1fr);
    gap: 18px;
    margin: 22px 0 16px;
  }
  .hero.has-integrated-map .hero-icon-wrap { width: 94px; height: 94px; }
  .hero.has-integrated-map .hero-icon { width: 79px; height: 79px; }
  .hero.has-integrated-map h1 { font-size: clamp(39px, 3.7vw, 54px); }
  .hero.has-integrated-map .hero-summary {
    max-width: none; font-size: 16px; line-height: 1.52;
  }
  .hero.has-integrated-map .temperature-main { font-size: 39px; }
  .hero.has-integrated-map .hero-metrics { margin-top: auto; }
  .hero.has-integrated-map .hero-metric-label { font-size: 11px; }
  .hero.has-integrated-map .hero-metric-value { font-size: 16px; }
  .hero.has-integrated-map .hero-metric-direction { font-size: 12px; }
  .hero.has-integrated-map > #homeMapSection { padding-top: 20px; padding-bottom: 18px; }
  .hero.has-integrated-map .forecast-map-heading .section-kicker { font-size: 11px; }
  .hero.has-integrated-map .forecast-map-heading h2 { font-size: 21px; }
  .hero.has-integrated-map .forecast-map-period { font-size: 11px; }
  .hero.has-integrated-map .forecast-map-image { max-height: 340px; }
  .hero.has-integrated-map .forecast-map-caption { min-height: 28px; padding: 6px 10px; font-size: 11px; }
  .hero.has-integrated-map .hero-main > .current-hourly-launcher {
    justify-content: flex-start;
    padding: 15px 0 0;
    margin-top: 12px;
  }
  .hero.has-integrated-map .current-hourly-toggle {
    min-height: 43px; padding: 0 16px; font-size: 13px;
    color: #fff; background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.42); box-shadow: none;
  }
  .hero.has-integrated-map .current-hourly-toggle:hover {
    color: #fff; background: rgba(255,255,255,.19);
    border-color: rgba(255,255,255,.75);
  }
  #currentHourlySection.has-launcher-in-hero { margin-top: 0; }
  #currentHourlySection.has-launcher-in-hero.is-collapsed { margin-bottom: 0; }
  #currentHourlySection.has-launcher-in-hero .current-hourly-content { margin-top: 20px; }
}

/* v106 · Mapa de portada: acceso al visor cartográfico con zoom. */
.forecast-map-card { position: relative; }
.home-map-open { position: relative; display: block; width: 100%; overflow: hidden; cursor: zoom-in; text-decoration: none; }
.home-map-open .forecast-map-image { display: block; width: 100%; }
.home-map-open:focus-visible { outline: 3px solid #ffd17b; outline-offset: -3px; }
.home-map-open-label {
  position: absolute; bottom: 12px; right: 12px;
  padding: 7px 11px; border-radius: 999px;
  background: rgba(5, 38, 56, .89); color: white;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 3px 12px rgba(0,0,0,.17);
  pointer-events: none;
}
@media (max-width: 720px) { .home-map-open-label { font-size: 11px; bottom: 8px; right: 8px; } }
@media (min-width: 1020px) {
  .hero.has-integrated-map .forecast-map-heading { align-items: flex-start; }
  .hero.has-integrated-map .forecast-map-heading h2 { font-size: 20px; line-height: 1.2; }
  .hero.has-integrated-map .forecast-map-period { white-space: nowrap; }
}

/* v107 · Título con salto semántico antes del horizonte; modal de zoom. */
.home-map-title-main, .home-map-title-horizon { display: inline-block; white-space: nowrap; }
/* El período queda sobre fondo claro en móvil/tablet y dentro del hero oscuro en escritorio. */
#homeMapTitle .home-map-title-horizon { color: #234f65; }
.hero.has-integrated-map #homeMapTitle .home-map-title-horizon { color: #c7edf3; }
@media (min-width: 1020px) {
  .hero.has-integrated-map .forecast-map-heading h2 { text-wrap: pretty; }
}
.home-map-open { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; }
.home-map-modal[hidden] { display: none !important; }
body.home-map-modal-open { overflow: hidden; }
.home-map-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: clamp(8px, 2vw, 24px); }
.home-map-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 24, 37, .85); }
.home-map-modal-panel { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(1400px, 100%); height: min(92dvh, 940px); overflow: hidden; border-radius: 18px; background: #f7fafb; box-shadow: 0 20px 70px rgba(0,0,0,.4); }
.home-map-modal-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; color: #0c2d43; }
.home-map-modal-heading { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-map-modal-heading strong { font-size: 17px; line-height: 1.25; }
.home-map-modal-heading span { font-size: 12px; color: #557184; }
.home-map-modal-controls { display: flex; gap: 7px; align-items: center; flex: 0 0 auto; }
.home-map-modal-controls button { min-width: 38px; min-height: 38px; padding: 5px 9px; border: 1px solid #cad8e1; border-radius: 10px; background: #fff; color: #0c2d43; cursor: pointer; font-weight: 800; }
.home-map-modal-controls button:hover { background: #eaf4f8; }
.home-map-modal-controls .home-map-modal-close { font-size: 26px; line-height: 1; margin-left: 7px; }
.home-map-modal-viewport { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #deebf0; cursor: zoom-in; touch-action: none; }
.home-map-modal-viewport.is-dragging { cursor: grabbing; }
.home-map-modal-viewport img { width: 100%; height: 100%; object-fit: contain; max-width: none; max-height: none; user-select: none; -webkit-user-drag: none; transform-origin: center center; }
.home-map-modal-footer { flex: 0 0 auto; padding: 8px 15px; color: #557184; font-size: 11px; text-align: center; }
@media (max-width: 720px) {
 .home-map-modal-panel { height: 94dvh; border-radius: 13px; }
 .home-map-modal-header { align-items: flex-start; padding: 10px; }
 .home-map-modal-heading strong { font-size: 13px; }
 .home-map-modal-heading span { font-size: 10px; }
 .home-map-modal-controls { gap: 4px; }
 .home-map-modal-controls button { min-width: 30px; min-height: 32px; padding: 3px 5px; font-size: 12px; }
 .home-map-modal-footer { font-size: 10px; }
}


/* v110 · Portada: aprovechar todo el ancho del mapa en escritorio.
   El límite anterior de 340px reducía la imagen y creaba franjas
   laterales. Conservamos la proporción original sin recortar. */
@media (min-width: 1020px) {
  .hero.has-integrated-map .home-map-open .forecast-map-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
  }
}

/* v113 · Marcador concéntrico refinado: rojo más intenso y aros más equilibrados. */
.home-map-location-marker {
  position: absolute;
  z-index: 3;
  display: block;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 2.5px solid #ff4b3a;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.30);
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.home-map-location-marker::before,
.home-map-location-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.home-map-location-marker::before {
  width: 8px;
  height: 8px;
  background: #ffffff;
}
.home-map-location-marker::after {
  width: 4px;
  height: 4px;
  background: #ff4b3a;
}
.home-map-location-marker[hidden] { display: none !important; }
.home-map-location-marker--modal { width: 23px; height: 23px; }
.home-map-location-marker--modal::before { width: 9px; height: 9px; }
.home-map-location-marker--modal::after { width: 5px; height: 5px; }


/* ============================================================
   v114 · Portada móvil compacta y cromática.
   SOLO <= 640 px. Desktop y tablet conservan la presentación anterior.
   ============================================================ */
.hero-mobile-eyebrow, .hero-place-altitude-short,
.hero-mobile-temps, .hero-mobile-precip, .hero-mobile-trend { display: none; }

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-main { padding: 22px 19px 19px; }
  .hero-place { width: 100%; }
  .hero-place-kicker, .hero .hero-place-period { display: none; }
  .hero-mobile-eyebrow {
    display: block; color: #afe4eb;
    font-size: 9px; font-weight: 850; line-height: 1.3;
    letter-spacing: .13em; text-transform: uppercase;
  }
  .hero-place-main { margin-top: 9px; gap: 7px 10px; }
  .hero-place-name { font-size: clamp(23px, 6.5vw, 31px); line-height: 1.13; }
  .hero-place-altitude { padding: 5px 8px; font-size: 10px; }
  .hero-place-altitude #heroCityElevationLong { display: none; }
  .hero-place-altitude-short { display: inline; }

  /* Mismo ícono meteorológico; menor contenedor y título en su misma fila. */
  .hero .hero-condition {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 0 13px;
    margin: 20px 0 0;
  }
  .hero .hero-icon-wrap {
    grid-column: 1; grid-row: 1;
    width: 68px; height: 68px;
    border-radius: 20px;
  }
  .hero .hero-icon { width: 62px; height: 62px; }
  .hero-condition-copy { display: contents; }
  .hero .hero-condition h1 {
    grid-column: 2; grid-row: 1;
    font-size: clamp(27px, 7.2vw, 35px);
    line-height: 1.06;
    letter-spacing: -.048em;
    overflow-wrap: normal;
  }
  .hero .hero-summary {
    grid-column: 1 / -1;
    width: 100%; max-width: none;
    margin: 14px 0 0;
    font-size: 13.5px; line-height: 1.48;
    color: rgba(255,255,255,.85);
  }
  .hero .hero-summary.hero-has-precip-chip .hero-summary-accumulation--precip,
  .hero .hero-summary.hero-has-snow-chip .hero-summary-accumulation--snow { display: none; }
  .hero .hero-summary .hero-summary-accumulation.is-first { margin-top: 5px; }
  .hero .temperature-line {
    grid-column: 1 / -1;
    display: flex; align-items: stretch; justify-content: space-between;
    flex-wrap: nowrap; gap: 8px;
    margin-top: 17px;
  }
  .hero .temperature-main { display: none; }
  .hero-mobile-temps { display: flex; align-items: center; min-width: 0; gap: 9px; }
  .hero-mobile-temp { display: flex; flex-direction: column; gap: 1px; }
  .hero-mobile-temp-label { color: rgba(255,255,255,.68); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .hero-mobile-temp strong { display: block; font-size: clamp(35px, 10.1vw, 48px); font-weight: 900; line-height: 1.09; letter-spacing: -.065em; }
  .hero-mobile-temp--min strong { color: #9edaff; }
  .hero-mobile-temp--max strong { color: #ffbd85; }
  .hero-mobile-temp-divider { width: 1px; height: 41px; margin-top: 8px; background: rgba(255,255,255,.28); }
  .hero-mobile-precip {
    display: flex; flex: 0 1 auto; min-width: 95px;
    align-self: center; flex-direction: column; align-items: flex-start;
    gap: 5px; padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 13px; background: rgba(5, 35, 52, .28);
    color: #fff;
  }
  .hero-mobile-precip-label { font-size: 9px; font-weight: 750; color: #cce6ef; letter-spacing: .01em; }
  .hero-mobile-precip-amount { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 850; white-space: nowrap; }
  .hero-mobile-precip-amount i { display: inline-block; flex: 0 0 auto; width: 11px; height: 11px; border: 1px solid rgba(255,255,255,.83); border-radius: 3px; box-shadow: 0 0 0 1px rgba(5,29,44,.45); }

  /* Tres columnas siempre, sin tercera métrica huérfana. */
  .hero .hero-metrics {
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
    margin-top: 18px; border-top-color: rgba(255,255,255,.21);
  }
  .hero .hero-metric {
    min-width: 0; margin-top: 0; padding: 12px 7px 2px 0;
    border-top: 0;
  }
  .hero .hero-metric + .hero-metric,
  .hero .hero-metric:nth-child(3) {
    margin-top: 0; padding-left: 9px;
    border-top: 0; border-left: 1px solid rgba(255,255,255,.19);
  }
  .hero .hero-metric-label { font-size: 9px; letter-spacing: .08em; color: #acd8e6; }
  .hero .hero-metric-value {
    margin-top: 7px; font-size: clamp(10px, 2.8vw, 13px);
    line-height: 1.3; white-space: normal;
    overflow: visible; text-overflow: clip; overflow-wrap: anywhere;
  }
  .hero .hero-metric-direction { margin-top: 5px; font-size: 10px; line-height: 1.2; color: #c5e3ed; }
  .hero .hero-gust-warning { font-size: 12px; }

  /* Panel SVG a partir de datos horarios reales. Botón completo accesible. */
  .hero .hero-mobile-trend {
    display: block; width: 100%; min-height: 44px;
    margin-top: 16px; padding: 10px 13px 9px;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 16px; background: rgba(3, 28, 43, .38);
    color: #fff; cursor: pointer;
    text-align: left; font: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  }
  .hero .hero-mobile-trend[hidden] { display: none; }
  .hero-mobile-trend:focus-visible { outline: 3px solid #a4e2ef; outline-offset: 3px; }
  .hero-mobile-trend-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .hero-mobile-trend-title { font-size: 10px; color: #b5e2ec; font-weight: 900; letter-spacing: .09em; }
  .hero-mobile-trend-link { font-size: 11px; color: #ffffff; font-weight: 800; white-space: nowrap; }
  .hero-mobile-trend-chart { display: block; margin-top: 1px; }
  .hero-mini-graphs { display: block; }
  .hero-mini-panel-label {
    display: block; margin: 2px 0 0 1px;
    color: #d4e9f0; font-size: 9.5px; font-weight: 720;
    letter-spacing: .025em; line-height: 1;
  }
  .hero-mini-panel-label--precip { margin-top: 1px; }
  .hero-mini-svg { display: block; width: 100%; max-width: 420px; margin-inline: auto; height: auto; overflow: visible; }
  /* Un pequeño respiro entre el título de temperatura y los primeros valores. */
  .hero-mini-svg--temp { margin-top: 4px; }
  .hero-mini-temp-line { fill: none; stroke: #ffbd85; stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
  .hero-mini-temp-dot { fill: #ffd5ad; stroke: #143b4e; stroke-width: 1.2; }
  .hero-mini-hour { fill: #d0e9f0; font: 750 11.5px Inter, ui-sans-serif, sans-serif; }
  .hero-mini-grid { stroke: #e1edf4; stroke-opacity: .20; stroke-width: .8; }
  .hero-mini-precip-guide { stroke: #cae2ea; stroke-opacity: .20; stroke-width: .65; stroke-dasharray: 2.5 3; }
  .hero-mini-precip-level-label { fill: #f0f9fc; font: 780 9.5px Inter, ui-sans-serif, sans-serif; }
  .hero-mini-axis-title { fill: #c8e5ee; font: 800 11px Inter, ui-sans-serif, sans-serif; }
  .hero-mini-axis-number { fill: #b8dbe7; font: 750 10.5px Inter, ui-sans-serif, sans-serif; }
  .hero-mini-temp-value { fill: #ffdbb9; font: 850 10.5px Inter, ui-sans-serif, sans-serif; paint-order: stroke fill; stroke: #0b354d; stroke-width: 2px; }
  .hero-mini-precip-value { fill: #edf9fd; font: 800 9.5px Inter, ui-sans-serif, sans-serif; paint-order: stroke fill; stroke: #0b354d; stroke-width: 2px; }
  .hero-mini-precip-bar { opacity: .94; }
  .hero-mini-key { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: -2px 1px 0; }
  .hero-mini-key > span { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: #c2dfe8; font-weight: 720; }
  .hero-mini-key-line { width: 15px; height: 0; border-top: 2.5px solid #ffbd85; border-radius: 2px; }
  .hero-mini-key-precip { width: 9px; height: 9px; border-radius: 2px; background: #88d2eb; }
  /* Sin leyenda al pie: recuperar parte del espacio inferior. */
  .hero .hero-mobile-trend { padding-bottom: 3px; }
  .hero-mobile-trend-unavailable { display: block; padding: 18px 0 10px; font-size: 12px; color: #c9e3eb; }

  /* Se reemplaza solamente el launcher móvil; el detalle horario sigue intacto. */
  #currentHourlySection .current-hourly-launcher { display: none; }
  #currentHourlySection.is-collapsed { margin: 0; }
  #currentHourlySection:not(.is-collapsed) { margin-top: 13px; }
  #currentHourlySection:not(.is-collapsed) .current-hourly-content { margin-top: 0; }
  #currentHourlySection + .observations-section { margin-top: 24px; }
}

@media (max-width: 365px) {
  .hero-main { padding-left: 15px; padding-right: 15px; }
  .hero-mobile-temp strong { font-size: 35px; }
  .hero-mobile-temps { gap: 6px; }
  .hero-mobile-precip { padding: 8px 7px; min-width: 91px; }
  .hero-mobile-precip-amount { font-size: 14px; }
}


/* v126 · Ocultar solo la cabecera móvil al bajar, sin cambiar sus medidas. */
@media (max-width: 720px) {
  .site-header {
    transition: transform 230ms ease;
  }
  .site-header.is-scrolled-away {
    transform: translate3d(0, -105%, 0);
    pointer-events: none;
  }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}


/* ============================================================
   MAPAS · controles compactos v2
   Una única barra de filtros. El visor y el manifest no se alteran.
   ============================================================ */
.maps-mode-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e7f0f5;
}
.maps-mode-tab {
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.maps-mode-tab.is-active { color: #fff; background: var(--ink-900); }
.maps-mode-tab:focus-visible,
.maps-panorama-day:focus-visible,
.maps-panorama-product:focus-visible,
.maps-open-explore:focus-visible { outline: 3px solid rgba(8,127,165,.40); outline-offset: 2px; }
#mapsPanoramaControls[hidden], #mapsExploreControls[hidden], #mapsOpenInExplorer[hidden] { display: none !important; }

.maps-panorama-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  row-gap: 6px;
  padding: 10px 13px;
  margin-bottom: 5px;
  border-radius: 14px;
  box-shadow: none;
}
.maps-panorama-field {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.maps-panorama-days,
.maps-panorama-products { display: flex; align-items: center; min-width: 0; gap: 5px; }
.maps-panorama-days { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.maps-panorama-day {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 35px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  white-space: nowrap;
}
.maps-panorama-day strong { font-size: 12px; font-weight: 850; }
.maps-panorama-day small { color: inherit; font-size: 10px; opacity: .7; }
.maps-panorama-day:disabled { opacity: .45; cursor: not-allowed; }
.maps-panorama-day:not(:disabled):hover,
.maps-panorama-product:not(:disabled):hover { border-color: var(--blue); background: var(--surface-blue); }
.maps-panorama-day.is-active,
.maps-panorama-product.is-active { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }
.maps-panorama-no-dates { color: var(--ink-600); font-size: 12px; }
.maps-panorama-product {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 35px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  white-space: nowrap;
}
.maps-panorama-product strong { font-size: 11px; font-weight: 800; }
.maps-panorama-product-label-short { display: none; }
.maps-panorama-product-icon { font-size: 16px; line-height: 1; }
.maps-panorama-product small { display: none; }
.maps-panorama-product:disabled { opacity: .45; cursor: not-allowed; }
/* Nota accesible: las fechas y el título ya informan el período sin ocupar otra fila. */
.maps-panorama-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.maps-current-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 5px 0 7px;
  padding: 0 4px;
}
.maps-current-meta > div:first-child { min-width: 0; }
.maps-current-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.maps-open-explore {
  min-height: 28px;
  padding: 4px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue-dark);
  cursor: pointer;
}
.maps-open-explore:hover { background: var(--surface-blue); }
.maps-frame-meta { margin: 3px 0 0; color: var(--ink-500); font-size: 10px; }
/* Panorama: mapa primero, metadatos legibles debajo. Sin título duplicado. */
.maps-explorer-app.is-panorama { display: flex; flex-direction: column; }
.maps-explorer-app.is-panorama .maps-panorama-controls { order: 0; }
.maps-explorer-app.is-panorama .maps-viewer-panel {
  order: 1;
}
.maps-explorer-app.is-panorama .maps-current-meta {
  order: 2;
  width: min(100%, calc(var(--maps-viewer-target-height) * var(--maps-viewer-ratio, 1.418)));
  align-self: center;
  margin: 6px auto 0;
  padding: 0 3px;
}
.maps-explorer-app.is-panorama .maps-current-meta > div:first-child { flex: 1 1 auto; }
.maps-explorer-app.is-panorama .maps-current-title,
.maps-explorer-app.is-panorama .maps-current-description,
.maps-explorer-app.is-panorama .maps-availability-badge { display: none; }
.maps-explorer-app.is-panorama .maps-frame-meta {
  margin: 0;
  color: var(--ink-600);
  font-size: 11px;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .maps-panorama-controls { grid-template-columns: minmax(0, 1fr); }
  .maps-panorama-products { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .maps-page-hero { align-items: flex-start; flex-wrap: wrap; gap: 9px; }
  .maps-page-hero h1 { font-size: 27px; }
  .maps-mode-tabs { width: auto; }
  .maps-mode-tab { min-height: 32px; padding: 0 10px; font-size: 11px; }
  /* Opciones siempre visibles: dos columnas, sin desplazamiento horizontal. */
  .maps-panorama-controls { padding: 11px 12px; row-gap: 10px; }
  .maps-panorama-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  /* Todos los días quedan visibles en una única fila (cuatro o cinco). */
  .maps-panorama-days {
    display: flex;
    align-items: stretch;
    gap: 5px;
    width: 100%;
    overflow: visible;
    padding: 0;
  }
  .maps-panorama-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 5px;
    width: min(100%, 360px);
    justify-self: center;
    overflow: visible;
    padding: 0;
  }
  .maps-panorama-day,
  .maps-panorama-product {
    min-width: 0;
    min-height: 37px;
    padding: 6px 8px;
  }
  .maps-panorama-day {
    flex: 1 1 0;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    min-height: 43px;
    padding: 5px 2px;
    white-space: nowrap;
  }
  .maps-panorama-day strong { font-size: 11px; line-height: 1.1; }
  .maps-panorama-day small { font-size: 9px; line-height: 1.1; }
  /* El quinto día comparte la fila; reducimos ligeramente su tipografía. */
  .maps-panorama-days:has(> .maps-panorama-day:nth-child(5)) .maps-panorama-day strong { font-size: 10px; }
  .maps-panorama-product {
    flex: initial;
    flex-direction: column;
    gap: 4px;
    min-height: 55px;
    padding: 7px 2px;
    white-space: normal;
  }
  .maps-panorama-product-icon { font-size: 18px; }
  .maps-panorama-product strong { font-size: 10px; line-height: 1.15; text-align: center; }
  .maps-panorama-product-label-full { display: none; }
  .maps-panorama-product-label-short { display: inline; }
  .maps-current-meta { align-items: flex-start; gap: 7px; }
  .maps-current-actions { flex-wrap: wrap; }
  .maps-viewer-panel,
  .maps-explorer-app.is-panorama .maps-current-meta { width: 100%; }
}
@media (max-width: 450px) {
  .maps-page-hero { flex-direction: column; align-items: flex-start; }
  .maps-mode-tabs { width: 100%; }
  .maps-mode-tab { flex: 1; }
  .maps-current-meta { flex-direction: column; }
  .maps-current-actions { align-self: flex-end; }
}


/* Mapa categórico de tormentas. No afecta la leyenda continua de PP/ráfagas. */
.maps-risk-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: min(100%, 570px); margin-inline: auto; }
.maps-risk-legend-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 15px auto;
  gap: 4px;
  text-align: center;
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.maps-risk-legend-item > span:last-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}
.maps-risk-legend-swatch { height: 15px; border: 1px solid rgba(50,70,83,.22); }
@media (max-width: 720px) {
  .maps-risk-legend-item { font-size: 12px; }
}


/* v15 · Explorar mapas: controles compactos y sin desbordamiento móvil.
   Todas las reglas están limitadas al explorador; Panorama diario no cambia. */
#mapsExploreControls .maps-scheme-controls {
  padding: 12px 14px;
  margin-bottom: 6px;
}
#mapsExploreControls .maps-scheme-controls-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
#mapsExploreControls .maps-field { min-width: 0; }
#mapsExploreControls .maps-field > span { font-size: 10px; }
#mapsExploreControls .maps-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 0;
}
#mapsExploreControls .maps-product-button {
  min-width: 0;
  width: 100%;
  min-height: 53px;
  padding: 9px 10px;
  flex: initial;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-wrap: anywhere;
}
#mapsExploreControls .maps-product-button > span {
  font-size: 12px;
  line-height: 1.25;
}
#mapsExploreControls .maps-product-button.is-placeholder:not(.is-active) { opacity: .58; }
#mapsExploreControls .maps-product-button:focus-visible,
#mapsExploreControls .maps-period-button:focus-visible,
#mapsExploreControls .maps-group-tab:focus-visible { outline: 3px solid rgba(8,127,165,.38); outline-offset: 2px; }
#mapsExploreControls .maps-period-field[hidden] { display: none; }
#mapsExploreControls .maps-period-buttons {
  display: grid;
  grid-template-columns: repeat(var(--maps-explore-period-columns, 4), minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
  overflow: visible;
  padding: 0;
}
#mapsExploreControls .maps-period-buttons[hidden] { display: none; }
#mapsExploreControls .maps-period-button {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  flex: initial;
  padding: 6px 4px;
  text-align: center;
}
#mapsExploreControls .maps-period-button > span { font-size: 12px; white-space: normal; }
#mapsExplorerApp:not(.is-panorama) .maps-current-meta {
  margin: 7px 0 10px;
  padding: 0 3px;
}
#mapsExplorerApp:not(.is-panorama) .maps-current-title {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
}
#mapsExplorerApp:not(.is-panorama) .maps-current-description,
#mapsExplorerApp:not(.is-panorama) .maps-availability-badge { display: none; }
#mapsExplorerApp:not(.is-panorama) .maps-frame-meta {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
}
@media (max-width: 800px) {
  #mapsExploreControls .maps-scheme-controls { padding: 12px; }
  #mapsExploreControls .maps-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mapsExploreControls .maps-product-button { min-height: 53px; }
  #mapsExploreControls .maps-group-tabs { gap: 6px; }
  #mapsExploreControls .maps-group-tab { flex: 1 1 0; min-width: 0; padding: 0 8px; text-align: center; }
}
@media (max-width: 450px) {
  #mapsExploreControls .maps-product-grid { gap: 7px; }
  #mapsExploreControls .maps-product-button { padding: 8px 6px; }
  #mapsExploreControls .maps-product-button > span { font-size: 11.5px; }
  #mapsExploreControls .maps-period-button > span { font-size: 11px; }
  #mapsExploreControls .maps-period-button > small { font-size: 9px; }
  #mapsExplorerApp:not(.is-panorama) .maps-current-meta { flex-direction: row; }
}

/* Explorador: selector de productos debajo del visor, botones equilibrados. */
#mapsExploreProducts[hidden] { display: none !important; }
#mapsExploreProducts {
  margin-top: 13px;
  margin-bottom: 0;
  padding: 13px 15px;
}
#mapsExploreProducts .maps-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}
#mapsExploreProducts .maps-product-button {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  flex: initial;
  align-items: center;
  text-align: center;
  overflow-wrap: anywhere;
}
#mapsExploreProducts .maps-product-button > span { font-size: 12px; line-height: 1.25; }
#mapsExploreProducts .maps-product-button.is-placeholder:not(.is-active) { opacity: .58; }
#mapsExploreProducts .maps-product-button:focus-visible { outline: 3px solid rgba(8,127,165,.38); outline-offset: 2px; }
@media (max-width: 800px) {
  #mapsExploreProducts .maps-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 450px) {
  #mapsExploreProducts { padding: 11px 12px; }
  #mapsExploreProducts .maps-product-grid { gap: 7px; }
  #mapsExploreProducts .maps-product-button { min-height: 43px; padding: 7px 8px; }
  #mapsExploreProducts .maps-product-button > span { font-size: 11.5px; }
}

/* Meteogramas: presentación compacta y selección por día (v141). */
.meteogram-page .page-shell { padding-top: 24px; }
.meteogram-page .meteogram-hero-compact { min-height: 0; padding: 8px 4px 12px; border-radius: 0; box-shadow: none; background: none; color: var(--ink-950); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.meteogram-page .meteogram-hero-compact::after { display: none; }
.meteogram-page .meteogram-hero-compact h1 { margin: 0; font-size: clamp(28px,3.4vw,42px); line-height: 1.1; letter-spacing: -.04em; }
.meteogram-page .meteogram-hero-compact .meteogram-hero-side { padding: 0; border: 0; background: none; backdrop-filter: none; text-align: right; }
.meteogram-page .meteogram-hero-compact .meteogram-hero-side > strong { margin: 0; font-size: 14px; }
.meteogram-page .meteogram-hero-compact .meteogram-meta { margin-top: 5px; justify-content: flex-end; }
.meteogram-page .meteogram-hero-compact .meteogram-run-chip { padding: 0; border: 0; background: none; color: var(--ink-600); font-size: 10px; }
.meteogram-page .meteogram-controls-card { margin-top: 8px; padding: 16px 20px; gap: 13px 22px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); box-shadow: none; border-radius: 19px 19px 0 0; }
.meteogram-page .meteogram-mode-row { margin-bottom: 5px; }
.meteogram-page .meteogram-chart-card { margin-top: 0; padding: 16px 20px 20px; border-radius: 0 0 19px 19px; border-top: 0; box-shadow: var(--shadow-sm); }
.meteogram-page .meteogram-card-heading { align-items: center; }
.meteogram-page .meteogram-card-heading .section-kicker { display: none; }
.meteogram-page .meteogram-title-line { margin-top: 0; }
.meteogram-page .meteogram-title-line h2 { font-size: 23px; }
.meteogram-page .meteogram-chart-shell { margin-top: 12px; }
.meteogram-page .meteogram-chart { min-height: 367px; }
.meteogram-page .meteogram-y-axis { height: 367px; }
.meteogram-page .meteogram-chart-note { margin-top: 8px; }
.meteogram-day-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.meteogram-day-button { min-height: 37px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink-700); font: inherit; font-size: 12px; font-weight: 760; cursor: pointer; }
.meteogram-day-button[aria-pressed="true"] { background: var(--blue-dark); color: white; border-color: var(--blue-dark); }
.meteogram-day-button:hover:not([aria-pressed="true"]) { background: var(--surface-blue); }
.meteogram-day-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 720px) {
  .meteogram-page .meteogram-hero-compact { align-items: flex-start; flex-direction: column; gap: 7px; padding: 3px 2px 10px; }
  .meteogram-page .meteogram-hero-compact h1 { font-size: 30px; }
  .meteogram-page .meteogram-hero-compact .meteogram-hero-side { text-align: left; }
  .meteogram-page .meteogram-hero-compact .meteogram-meta { justify-content: flex-start; }
  .meteogram-page .meteogram-controls-card { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .meteogram-page .meteogram-chart-card { padding: 14px 10px 16px; }
  .meteogram-page .meteogram-title-line h2 { font-size: 21px; }
  .meteogram-day-button { padding: 7px 9px; font-size: 11px; }
}

/* Meteogramas: etiqueta de corrida discreta al pie del gráfico. */
.meteogram-page .meteogram-run-footer { margin: 10px 2px 0; color: var(--ink-500); font-size: 12px; font-weight: 650; text-align: right; }

/* Meteogramas: selector de variables propio y paleta meteorológica. */
.meteogram-page .meteogram-native-select { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; overflow:hidden; }
.meteogram-page .meteogram-field { position:relative; }
.meteogram-custom-select { position:relative; width:100%; min-width:0; }
.meteogram-dropdown-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:46px; padding:10px 13px; border:1px solid var(--line-strong); border-radius:12px; background:#f7fafb; color:var(--ink-950); font:inherit; font-size:13px; font-weight:760; text-align:left; cursor:pointer; }
.meteogram-dropdown-trigger:hover,.meteogram-dropdown-trigger[aria-expanded="true"] { background:#fff; border-color:#86b6ca; }
.meteogram-dropdown-trigger:focus-visible,.meteogram-dropdown-option:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.meteogram-dropdown-chevron { flex:0 0 auto; width:8px; height:8px; margin-right:3px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-2px); opacity:.65; }
.meteogram-dropdown-panel { position:absolute; z-index:50; top:calc(100% + 5px); left:0; width:max(100%, min(390px, calc(100vw - 35px))); max-height:min(440px, 65vh); overflow:auto; padding:7px; border:1px solid var(--line-strong); border-radius:13px; background:#fff; box-shadow:0 14px 38px rgba(8,35,53,.17); scrollbar-width:thin; }
.meteogram-dropdown-panel[hidden] { display:none; }
.meteogram-dropdown-group { padding:12px 10px 6px; color:var(--ink-500); font-size:10px; font-weight:850; text-transform:uppercase; letter-spacing:.09em; }
.meteogram-dropdown-option { display:block; width:100%; min-height:37px; padding:9px 12px; border:0; border-radius:8px; background:transparent; color:var(--ink-800); text-align:left; font:inherit; font-size:12.5px; font-weight:630; cursor:pointer; }
.meteogram-dropdown-option:hover,.meteogram-dropdown-option:focus-visible { background:#edf6fa; }
.meteogram-dropdown-option[aria-selected="true"] { background:#e4f3f9; color:#05627f; font-weight:800; }
@media(max-width:720px){.meteogram-dropdown-panel{width:100%;}.meteogram-dropdown-trigger{font-size:13px;}}

/* Meteogramas: alinear el selector de vista con su etiqueta. */
.meteogram-page .meteogram-mode-row { align-items: center; justify-content: flex-start; gap: 14px; }
.meteogram-page .meteogram-mode-row .meteogram-control-label { margin: 0; }

/* Meteogramas: optimización exclusiva de la vista móvil. */
@media (max-width: 720px) {
  .meteogram-page .page-shell { padding-bottom: calc(145px + env(safe-area-inset-bottom, 0px)); }
  .meteogram-page .meteogram-controls-card { padding: 12px 13px 13px; gap: 10px; }
  .meteogram-page .meteogram-variable-controls { gap: 8px; }
  .meteogram-page .meteogram-mode-row { justify-content: flex-start; margin-bottom: 0; }
  .meteogram-page .meteogram-mode-row .meteogram-control-label { display: none; }
  .meteogram-page .meteogram-mode-segmented { max-width: 100%; }
  .meteogram-page .meteogram-field > span { margin-bottom: 6px; }
  .meteogram-page .meteogram-day-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .meteogram-page .meteogram-day-button { width: 100%; min-width: 0; min-height: 38px; padding: 7px 3px; font-size: clamp(10px, 2.8vw, 12px); white-space: nowrap; }
  .meteogram-page .meteogram-chart { min-height: 317px; }
  .meteogram-page .meteogram-y-axis { height: 317px; }
  .meteogram-page .meteogram-chart-card { padding-bottom: 22px; }
  .meteogram-page .meteogram-run-footer { margin-top: 12px; }
}

/* Meteogramas: legibilidad táctil, sin modificar la presentación de escritorio. */
@media (max-width: 720px) {
  .meteogram-page .meteogram-hero-compact h1 { font-size: 28px; }
  .meteogram-page .meteogram-controls-card { padding-top: 9px; padding-bottom: 9px; gap: 7px; }
  .meteogram-page .meteogram-variable-controls { gap: 6px; }
  .meteogram-page .meteogram-field > span { margin-bottom: 4px; }
  .meteogram-page .meteogram-day-button { min-height: 35px; }
  .meteogram-page .meteogram-chart-shell { margin-top: 9px; }
  .meteogram-page .meteogram-chart-scroll .meteogram-svg { touch-action: pan-y; }
  .meteogram-page .meteogram-tooltip:not([hidden]) {
    position: static !important; width: 100%; min-width: 0; max-width: none;
    padding: 8px 11px; margin: 8px 0 0; box-shadow: none;
    background: #f5f9fb; border-radius: 10px; pointer-events: none;
  }
  .meteogram-page .meteogram-tooltip[hidden] { display: none !important; }
  .meteogram-page .meteogram-tooltip time { margin: 0 0 5px; padding: 0 0 4px; }
  .meteogram-page .meteogram-tooltip-variable div { padding: 2px 0; }
}

/* Meteogramas móvil: accesibilidad y espacio libre para barra de navegación. */
@media (max-width: 720px) {
  .meteogram-page .page-shell { padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px)); }
  .meteogram-page .meteogram-chart-card { margin-bottom: 95px; }
  .meteogram-page .meteogram-chart-scroll:focus { outline: none; }
  .meteogram-page .meteogram-chart-scroll:focus-visible { outline: 2px solid rgba(8,127,165,.30); outline-offset: -2px; }
  .meteogram-page .meteogram-hero-compact h1 { font-size: 26px; }
  .meteogram-page .meteogram-controls-card { gap: 6px; }
  .meteogram-page .meteogram-day-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%; max-width: 100%;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .meteogram-page .meteogram-day-button {
    flex: initial;
    width: 100%; min-width: 0; min-height: 35px;
    padding: 7px 3px;
    font-size: clamp(10px, 2.8vw, 12px);
    white-space: nowrap;
    scroll-snap-align: none;
  }
}

/* Meteogramas: los desplegables deben quedar delante del gráfico. */
.meteogram-page .meteogram-controls-card { position: relative; z-index: 5; }
.meteogram-page .meteogram-chart-card { z-index: 1; }
.meteogram-page .meteogram-field:focus-within { z-index: 10; }

/* v143 · Hero con observaciones integradas y una sola curva para móvil/escritorio. */
.hero { grid-template-columns: minmax(0,1fr); }
.hero-topline { position:relative; z-index:3; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 30px 0; flex-wrap:wrap; }
.hero-topline .hero-place-main { margin:0; }
.hero-topline .hero-place-name { font-size:clamp(28px,3.6vw,52px); }
.hero-now[hidden] { display:none !important; }
.hero-now { display:flex; align-items:center; gap:20px; max-width:100%; padding:13px 20px; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.14); border-radius:22px; color:#fff; }
.hero-now.is-older { opacity:1; } /* No apagar mediciones vigentes: solo cambiar el estado. */
.hero-now-status { display:flex; align-items:flex-start; gap:8px; flex:none; }
.hero-now-dot { flex:none; width:9px;height:9px;border-radius:50%;margin-top:5px;background:#5ee6a0; }
.hero-now.is-older .hero-now-dot { background:#8fa6b3; }
.hero-now-status-copy { display:flex;flex-direction:column;gap:4px; }
.hero-now-status-copy b {font-size:10px;letter-spacing:.12em;font-weight:850;color:#f0fbff;}
.hero-now-status-copy small {font-size:10px;white-space:nowrap;color:#dceff7;}
.hero-now-temp strong {color:#ffffff;font-size:44px;letter-spacing:-.05em;line-height:1;font-weight:900;white-space:nowrap;}
.hero-now-humidity--desktop,.hero-now-wind {border-left:1px solid rgba(255,255,255,.18);padding-left:18px;}
.hero-now-humidity--desktop {display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px;}
.hero-now-humidity--desktop strong {color:#fff;font-size:19px;}
.hero-now-drop {font-size:14px;color:#bbebfa;}
.hero-now-humidity--mobile {display:none;}
.hero-now-wind {display:flex;flex-direction:column;gap:3px;min-width:0;}
.hero-now-wind-main {display:flex;align-items:center;gap:7px;white-space:nowrap;}
.hero-now-wind-main strong {color:#fff;font-size:19px;font-weight:850;}
.hero-now-arrow {width:20px;height:20px;flex:none;}
.hero-now-gust {font-size:11px;color:#e1f2fa;white-space:nowrap;}
.hero-now-gust.is-significant {align-self:flex-start;padding:3px 6px;border-radius:6px;background:#ffd08a;color:#2d2a23;font-weight:850;}
.hero-topline + .hero-main {padding-top:10px;}
.hero-topline .hero-place-period {display:none;}
.hero-main > .hero-place-period {display:block;margin:0 0 2px;font-size:11px;}
.hero-trend-wrap {position:relative;z-index:2;grid-column:1/-1;padding:0 30px 20px;min-width:0;}
.hero .hero-unified-trend {display:block;width:100%;padding:12px 20px 9px;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:rgba(5,30,48,.30);color:#fff;text-align:left;cursor:pointer;font:inherit;}
.hero .hero-unified-trend[hidden] {display:none;}
.hero .hero-unified-trend .hero-mobile-trend-heading {display:flex;justify-content:space-between;gap:12px;}
.hero .hero-unified-trend .hero-mobile-trend-title {color:#c1e7f0;font-size:11px;letter-spacing:.10em;font-weight:850;}
.hero .hero-unified-trend .hero-mobile-trend-link {color:#fff;font-size:12px;font-weight:800;}
.hero .hero-unified-trend .hero-mobile-trend-chart {display:block;max-width:850px;margin:4px auto 0;}
.hero .hero-unified-trend .hero-mini-svg {display:block;width:100%;max-width:none;margin:0 auto;height:auto;overflow:visible;}
.hero .hero-unified-trend .hero-mini-panel-label {display:block;color:#cde7ef;font-size:10px;font-weight:750;}
.hero .hero-unified-trend .hero-mini-temp-line {fill:none;stroke:#ffbd85;stroke-width:2.8;}
.hero .hero-unified-trend .hero-mini-temp-dot {fill:#ffd5ad;stroke:#143b4e;stroke-width:1.2;}
.hero .hero-unified-trend .hero-mini-temp-value {fill:#ffdbb9;font:850 10.5px Inter,sans-serif;paint-order:stroke fill;stroke:#0b354d;stroke-width:2px;}
.hero .hero-unified-trend .hero-mini-hour {fill:#d0e9f0;font:750 11.5px Inter,sans-serif;}
.hero .hero-unified-trend .hero-mini-precip-guide {stroke:#e2f5fc;stroke-opacity:.62;stroke-width:.9;stroke-dasharray:3 3;}
.hero .hero-unified-trend .hero-mini-precip-level-label {fill:#f0f9fc;font:780 9.5px Inter,sans-serif;}
.hero .hero-unified-trend .hero-mini-grid {stroke:#e1edf4;stroke-opacity:.20;stroke-width:.8;}
.hero .hero-unified-trend .hero-mini-graphs {display:block;}
.hero .hero-unified-trend .hero-mini-temp-dot {stroke:#143b4e;}
@media (min-width:1020px) {
  #forecastApp > .hero.has-integrated-map {grid-template-rows:auto auto auto;}
  #forecastApp > .hero.has-integrated-map > .hero-topline {grid-column:1/-1;grid-row:1;}
  #forecastApp > .hero.has-integrated-map > .hero-main {grid-column:1;grid-row:2;}
  #forecastApp > .hero.has-integrated-map > #homeMapSection {grid-column:2;grid-row:2;}
  #forecastApp > .hero.has-integrated-map > .hero-trend-wrap {grid-column:1/-1;grid-row:3;}
  .hero.has-integrated-map .hero-trend-wrap {padding-bottom:15px;}
  .hero.has-integrated-map .hero-main > .current-hourly-launcher {display:none;}
  .hero.has-integrated-map .hero-main .hero-condition {margin-top:16px;}
  .hero.has-integrated-map .hero-main {justify-content:flex-start;padding-bottom:7px;}
  .hero.has-integrated-map .hero-metrics {margin-top:14px;}
  .hero.has-integrated-map .hero-condition {margin-bottom:15px;}
  .hero.has-integrated-map .hero-now {min-width:0;} 
  .hero .hero-mobile-temps {display:flex;align-items:center;gap:12px;}
  .hero .temperature-main {display:none;}
  .hero .hero-mobile-temp {display:flex;flex-direction:column;gap:4px;}
  .hero .hero-mobile-temp-label {color:#c7e2ef;font-size:11px;font-weight:800;text-transform:uppercase;}
  .hero .hero-mobile-temp strong {font-size:42px;letter-spacing:-.05em;line-height:1.05;}
  .hero .hero-mobile-temp--min strong {color:#9edaff;}
  .hero .hero-mobile-temp--max strong {color:#ffbd85;}
  .hero .hero-mobile-temp-divider {width:1px;height:48px;background:rgba(255,255,255,.22);}
  .hero .hero-mobile-precip {display:flex;flex-direction:column;gap:5px;padding:9px 13px;border:1px solid rgba(255,255,255,.17);border-radius:13px;background:rgba(5,35,52,.28);}
  .hero .hero-mobile-precip-label {font-size:10px;color:#cce6ef;}
  .hero .hero-mobile-precip-amount {display:flex;gap:6px;align-items:center;font-size:18px;font-weight:850;white-space:nowrap;}
  .hero .hero-mobile-precip-amount i {width:10px;height:10px;border-radius:2px;display:inline-block;}
  .hero .temperature-line {align-items:center;}
}
@media (max-width:1019px) and (min-width:641px) {
  .hero-topline {padding:23px 26px 0;}
  .hero-trend-wrap {padding:0 26px 22px;}
}
@media (max-width:640px) {
  .hero-topline {display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:20px 17px 0;}
  .hero-topline .hero-place-main {margin:0;}
  .hero-topline .hero-place-name {font-size:clamp(23px,6.5vw,31px);}
  .hero-now {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 10px;padding:11px 14px;border-radius:20px;}
  .hero-now-status {grid-column:1/-1;}
  .hero-now-status-copy {flex-direction:row;align-items:center;gap:9px;}
  .hero-now-temp {min-width:0;}
  .hero-now-temp strong {display:block;font-size:clamp(35px,11vw,46px);}
  .hero-now-humidity--mobile {display:block;font-size:14px;font-weight:650;line-height:1.25;color:#cfeaf5;margin-top:4px;}
  .hero-now-humidity--desktop {display:none;}
  /* Observaciones: viento y ráfaga comparten eje centrado en la segunda columna.
     Tipografía adaptable 320–390 px sin agrandar el recuadro. */
  .hero-now-wind {border-left:1px solid rgba(255,255,255,.18);padding-left:10px;align-items:center;justify-content:center;text-align:center;}
  .hero-now-wind-main {white-space:normal;justify-content:center;}
  .hero-now-wind-main strong {font-size:clamp(17px,5vw,20px);}
  .hero-now-gust {white-space:nowrap;font-size:clamp(11px,3.3vw,13px);line-height:1.25;}
  .hero-now-gust.is-significant {align-self:center;max-width:100%;padding:3px 4px;}
  .hero-main > .hero-mobile-eyebrow {display:block;margin-bottom:3px;}
  .hero-main > .hero-place-period {display:none;}
  .hero-topline + .hero-main {padding-top:17px;}
  .hero-trend-wrap {padding:0 17px 18px;}
  .hero .hero-unified-trend {padding:10px 12px 4px;border-radius:16px;}
  .hero .hero-unified-trend .hero-mobile-trend-chart {max-width:none;margin-top:1px;}
  .hero .hero-unified-trend .hero-mini-precip-guide {stroke:#cae2ea;stroke-opacity:.2;stroke-width:.65;stroke-dasharray:2.5 3;}
}

/* v148: encabezado compacto sin título visible; guías legibles también en móvil. */
.hero .hero-unified-trend .hero-mobile-trend-heading {
  justify-content: flex-end;
  min-height: 16px;
}
.hero .hero-unified-trend .hero-mobile-trend-chart { margin-top: 0; }
@media (max-width: 640px) {
  .hero .hero-unified-trend .hero-mini-precip-guide {
    stroke: #e2f5fc; stroke-opacity: .62; stroke-width: .9; stroke-dasharray: 3 3;
  }
  .hero .hero-unified-trend { padding-top: 7px; }
}

/* v149: observaciones con solo viento: tarjeta compacta sin columna vacía.
   En móvil se reduce el espacio libre entre pronóstico y curva. */
@media (max-width: 640px) {
  .hero-now.is-wind-only {
    grid-template-columns: minmax(0,1fr);
    gap: 3px;
    padding-block: 10px;
  }
  .hero-now.is-wind-only .hero-now-wind {
    border-left: 0;
    padding-left: 17px;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
  }
  .hero-now.is-wind-only .hero-now-wind-main { justify-content: flex-start; }
  .hero-topline + .hero-main { padding-bottom: 2px; }
  .hero-trend-wrap { padding-top: 0; }
}


/* v150 · Panorama diario: controles laterales exclusivamente en escritorio ancho.
   El visor conserva su relación de aspecto y la leyenda nunca se recorta.
   Explorar mapas y las vistas pequeñas mantienen el diseño anterior. */
@media (min-width: 1250px) {
  .maps-explorer-app.is-panorama {
    display: grid;
    grid-template-columns: minmax(145px, 170px) minmax(0, 1fr) minmax(145px, 170px);
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: clamp(12px, 1.4vw, 24px);
    row-gap: 6px;
    --maps-viewer-target-height: clamp(350px, calc(100svh - 290px), 790px);
  }
  .maps-explorer-app.is-panorama .maps-panorama-controls {
    display: contents;
  }
  .maps-explorer-app.is-panorama .maps-panorama-field--product {
    grid-column: 1; grid-row: 1;
  }
  .maps-explorer-app.is-panorama .maps-panorama-field--day {
    grid-column: 3; grid-row: 1;
  }
  .maps-explorer-app.is-panorama .maps-panorama-field--product,
  .maps-explorer-app.is-panorama .maps-panorama-field--day {
    min-width: 0;
    padding: 13px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow-sm);
  }
  .maps-explorer-app.is-panorama .maps-panorama-products,
  .maps-explorer-app.is-panorama .maps-panorama-days {
    display: flex; flex-direction: column; width: 100%;
    align-items: stretch; gap: 8px; overflow: visible;
  }
  .maps-explorer-app.is-panorama .maps-panorama-product,
  .maps-explorer-app.is-panorama .maps-panorama-day {
    width: 100%; min-width: 0; min-height: 43px;
    padding: 9px 8px; justify-content: flex-start;
    white-space: normal; text-align: left;
  }
  .maps-explorer-app.is-panorama .maps-panorama-day {
    justify-content: space-between;
  }
  .maps-explorer-app.is-panorama .maps-panorama-note {
    position: absolute;
  }
  .maps-explorer-app.is-panorama .maps-viewer-panel {
    grid-column: 2; grid-row: 1;
    order: initial; justify-self: center; align-self: start;
    width: min(100%, calc(var(--maps-viewer-target-height) * var(--maps-viewer-ratio, 1.418)));
  }
  .maps-explorer-app.is-panorama .maps-current-meta {
    grid-column: 2; grid-row: 2;
    order: initial; justify-self: center;
    margin-top: 2px;
  }
}


/* v153 · Explorador de escritorio: laterales coherentes con Panorama.
   Distribución restringida a >=1250px. No toca gestos ni mobile. */
@media (min-width: 1250px) {
  #mapsExplorerApp:not(.is-panorama) {
    display: grid;
    grid-template-columns: minmax(165px, 205px) minmax(0, 1fr) minmax(165px, 205px);
    grid-template-rows: min-content min-content minmax(0, 1fr) min-content;
    column-gap: clamp(12px, 1.4vw, 22px);
    row-gap: 0;
    align-items: start;
    --maps-viewer-target-height: clamp(350px, calc(100svh - 290px), 790px);
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreControls { display: contents; }
  #mapsExplorerApp:not(.is-panorama) #mapsGroupTabs {
    grid-column: 1; grid-row: 1;
    display: grid; grid-template-columns: 1fr;
    gap: 6px; margin: 0;
    padding: 12px 11px 8px;
    border: 1px solid var(--line); border-bottom: 0;
    border-radius: 17px 17px 0 0;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-sm);
  }
  #mapsExplorerApp:not(.is-panorama) #mapsGroupTabs .maps-group-tab {
    min-width: 0; width: 100%; min-height: 38px;
    padding: 7px; border-radius: 10px;
    font-size: 12px; text-align: center;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts {
    grid-column: 1; grid-row: 2;
    min-width: 0; margin: 0;
    padding: 5px 11px 13px;
    border-top: 0; border-radius: 0 0 17px 17px;
    background: rgba(255,255,255,.94);
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-field > span {
    display: block; margin: 3px 0 9px; font-size: 10px;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-grid {
    display: flex; flex-direction: column; gap: 7px;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-button {
    min-height: 44px; padding: 9px 10px;
    justify-content: flex-start; text-align: left;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-button > span {
    font-size: 11.5px; overflow-wrap: normal;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreControls .maps-scheme-controls {
    grid-column: 3; grid-row: 1 / 4;
    min-width: 0; margin: 0; padding: 13px 11px;
    border-radius: 17px;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreControls .maps-period-buttons {
    display: flex; flex-direction: column; gap: 8px;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreControls .maps-period-buttons[hidden] { display: none; }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreControls .maps-period-button {
    width: 100%; min-height: 45px; flex: none; padding: 8px 5px;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreControls #mapsPeriodSelect { max-width: 100%; }
  #mapsExplorerApp:not(.is-panorama) .maps-viewer-panel {
    grid-column: 2; grid-row: 1 / 4;
    justify-self: center; align-self: start;
    width: min(100%, calc(var(--maps-viewer-target-height) * var(--maps-viewer-ratio, 1.418)));
  }
  #mapsExplorerApp:not(.is-panorama) .maps-current-meta {
    grid-column: 2; grid-row: 4;
    justify-self: center;
    width: min(100%, calc(var(--maps-viewer-target-height) * var(--maps-viewer-ratio, 1.418)));
    margin: 9px auto 0;
  }
}

@media (min-width: 1250px) {
  .maps-period-unavailable { color: var(--ink-500); font-size: 12px; line-height: 1.5; padding: 8px 2px; }
}

/* v154: rótulos jerárquicos del explorador, exclusivamente en escritorio. */
.maps-desktop-category-label, .maps-products-label-desktop { display: none !important; }
@media (min-width: 1250px) {
  #mapsExplorerApp:not(.is-panorama) #mapsGroupTabs .maps-desktop-category-label {
    display: block !important;
    margin: 2px 0 5px;
    color: var(--blue-dark);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .11em;
    line-height: 1.3;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-products-label-mobile { display: none !important; }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-products-label-desktop { display: block !important; }
}

/* v155: controles temporales y descripción del catálogo acordado. */
.maps-proto-date-label { font-size:10px; font-weight:850; color:#557184; letter-spacing:.09em; margin:8px 0 5px; }
.maps-proto-days { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.maps-proto-days .maps-scheme-period-button { min-width:0; }
.maps-proto-timeline { display:flex; align-items:center; gap:4px; width:100%; }
.maps-proto-timeline button { width:29px; flex:none; height:38px; border:1px solid #cad8e1; border-radius:9px; background:#fff; cursor:pointer; font-size:20px; }
.maps-proto-time-select { min-width:0; max-width:100%; flex:1; height:38px; border:1px solid #cad8e1; border-radius:9px; background:#fff; font-size:12px; font-weight:700; color:#123e59; }
.maps-proto-temporal-note { display:block; color:#758b99; line-height:1.4; margin-top:8px; font-size:10px; }
.maps-proto-no-data { font-size:11px!important; opacity:.78; }
.maps-placeholder-content { padding: 16px; }
@media(max-width:720px) { .maps-proto-days {grid-template-columns:repeat(5,minmax(0,1fr));} .maps-proto-days .maps-scheme-period-button { padding:7px 2px; font-size:10px; } }

/* v156 · Fechas del explorador en columna (solo escritorio ancho). */
@media (min-width: 1250px) {
  #mapsExplorerApp:not(.is-panorama) .maps-proto-days {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-days .maps-scheme-period-button {
    width: 100%;
    min-height: 46px;
  }
}


/* v157 · Ajustes de la maqueta, exclusivamente escritorio ancho. */
.maps-proto-hour-desktop { display: none; }
@media (min-width: 1250px) {
  .maps-proto-hour-mobile { display: none; }
  .maps-proto-hour-desktop { display: inline; }
  /* Lista de análisis más compacta, sin reducir legibilidad. */
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-grid { gap: 5px; }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-button { min-height: 39px; padding: 7px 9px; }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-button.is-placeholder:not(.is-active) {
    opacity: 1; color: var(--ink-800);
  }
  #mapsExplorerApp:not(.is-panorama) #mapsViewerViewport.is-product-preview .maps-viewer-stage { visibility: hidden; }
  #mapsExplorerApp:not(.is-panorama) #mapsViewerViewport.is-product-preview .maps-viewer-empty { background: #eaf2f6; }
  #mapsExplorerApp:not(.is-panorama) #mapsViewerViewport.is-product-preview .maps-placeholder-content {
    width: min(100%, 520px); max-width: 520px; padding: 23px 28px;
    border: 1px solid #c8dbe5; border-radius: 18px; background: rgba(255,255,255,.92);
    box-shadow: 0 10px 30px rgba(8,35,53,.07);
  }
  #mapsExplorerApp:not(.is-panorama) #mapsViewerViewport.is-product-preview .maps-placeholder-content > strong { font-size: clamp(23px, 2.5vw, 30px); }
}

/* v158 · Unificación visual de botones: Panorama usa el lenguaje de Explorar.
   Únicamente escritorio ancho; no modifica el layout ni la navegación móvil. */
@media (min-width: 1250px) {
  .maps-explorer-app.is-panorama .maps-panorama-product,
  .maps-explorer-app.is-panorama .maps-panorama-day {
    min-height: 43px;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--ink-700);
    box-shadow: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
  }
  .maps-explorer-app.is-panorama .maps-panorama-product {
    justify-content: flex-start;
    gap: 0;
  }
  .maps-explorer-app.is-panorama .maps-panorama-product-icon { display: none; }
  .maps-explorer-app.is-panorama .maps-panorama-product strong {
    font-size: 11.5px;
    font-weight: 850;
    line-height: 1.25;
  }
  .maps-explorer-app.is-panorama .maps-panorama-day {
    justify-content: space-between;
    gap: 5px;
  }
  .maps-explorer-app.is-panorama .maps-panorama-day strong {
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
  }
  .maps-explorer-app.is-panorama .maps-panorama-day small {
    font-size: 10px;
    font-weight: 700;
  }
  .maps-explorer-app.is-panorama .maps-panorama-product:not(:disabled):hover,
  .maps-explorer-app.is-panorama .maps-panorama-day:not(:disabled):hover {
    border-color: rgba(8,127,165,.44);
    background: var(--surface-blue);
  }
  .maps-explorer-app.is-panorama .maps-panorama-product.is-active,
  .maps-explorer-app.is-panorama .maps-panorama-day.is-active {
    border-color: rgba(8,127,165,.62);
    background: var(--blue-dark);
    color: #fff;
    box-shadow: 0 5px 13px rgba(8,72,104,.16);
  }
}

/* v159 · Panorama diario: botones de producto con la presencia visual de Explorar.
   Solo escritorio ancho; fechas, columnas, mapa y móvil sin cambios. */
@media (min-width: 1250px) {
  .maps-explorer-app.is-panorama .maps-panorama-products { gap: 7px; }
  .maps-explorer-app.is-panorama .maps-panorama-product {
    min-height: 52px;
    padding: 10px 12px;
  }
  .maps-explorer-app.is-panorama .maps-panorama-product strong {
    font-size: 12px;
    line-height: 1.25;
  }
}

/* v160 · Sección Mapas: reparación de layout en pantallas estrechas.
   Sobrescribe reglas heredadas del prototipo v155 sin alterar >=1250px. */
@media (max-width: 1249px) {
  #mapas, #mapas .page-shell, #mapsExplorerApp,
  #mapsPanoramaControls, #mapsExploreControls,
  #mapsExploreControls .maps-scheme-controls,
  #mapsExploreControls .maps-scheme-controls-grid,
  #mapsExplorePeriodField, #mapsPeriodButtons,
  #mapsExploreProducts, #mapsProductGrid,
  #mapsViewerPanel, #mapsViewerViewport,
  #mapsFixedLegend, .maps-current-meta {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreControls .maps-period-buttons {
    display: block;
    width: 100%;
    min-height: 0;
    overflow: visible;
    padding: 0;
  }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-days {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-days .maps-scheme-period-button {
    min-width: 0;
    width: 100%;
    min-height: 49px;
    padding: 5px 2px;
    flex: none;
    border-radius: 11px;
  }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-date-label {
    display: block;
    margin: 12px 0 7px;
  }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-date-label:first-child { margin-top: 0; }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-timeline {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    width: 100%;
  }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-timeline button,
  #mapsExplorerApp:not(.is-panorama) .maps-proto-time-select {
    width: 100%; height: 42px; min-width: 0;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsViewerViewport.is-product-preview .maps-viewer-stage { visibility: hidden; }
  #mapsExplorerApp:not(.is-panorama) #mapsViewerViewport.is-product-preview .maps-viewer-empty {
    background: #eaf2f6;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsViewerViewport.is-product-preview .maps-placeholder-content {
    max-width: min(92%, 520px);
    padding: 16px;
    border: 1px solid #c8dbe5;
    border-radius: 15px;
    background: rgba(255,255,255,.94);
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-button.is-placeholder:not(.is-active) {
    opacity: 1;
    color: var(--ink-800);
  }
}
@media (max-width: 720px) {
  /* En Panorama la fila de productos y fechas se ajusta al contenedor. */
  #mapsExplorerApp.is-panorama .maps-panorama-controls,
  #mapsExplorerApp.is-panorama .maps-panorama-field,
  #mapsExplorerApp.is-panorama .maps-panorama-products,
  #mapsExplorerApp.is-panorama .maps-panorama-days {
    width: 100%; min-width: 0; max-width: 100%;
  }
  #mapsExplorerApp.is-panorama .maps-panorama-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  #mapsExplorerApp.is-panorama .maps-panorama-product {
    width: 100%; min-width: 0; padding-inline: 2px;
  }
  #mapsExplorerApp.is-panorama .maps-panorama-days {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
  #mapsExplorerApp.is-panorama .maps-panorama-day {
    width: 100%; min-width: 0; padding-inline: 1px;
  }
  #mapsExplorerApp .maps-viewer-panel { width: 100%; max-width: 100%; }
  #mapsExplorerApp .maps-fixed-legend { width: 100%; max-width: 100%; }
  #mapsExplorerApp .maps-fixed-legend-tick { font-size: clamp(8px, 2.55vw, 12px); }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreControls .maps-scheme-controls { padding: 12px; }
  #mapsExplorerApp:not(.is-panorama) #mapsGroupTabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  #mapsExplorerApp:not(.is-panorama) #mapsGroupTabs .maps-group-tab { width: 100%; padding: 0 5px; min-width: 0; }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-grid {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-button {
    min-width: 0; width: 100%; padding: 9px 6px;
  }
  #mapsExplorerApp:not(.is-panorama) #mapsExploreProducts .maps-product-button > span { overflow-wrap: anywhere; }
  #mapsExplorerApp:not(.is-panorama) .maps-placeholder-content > strong { font-size: clamp(19px, 5vw, 27px); }
  #mapsExplorerApp:not(.is-panorama) .maps-placeholder-content > p { font-size: 12px; }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-temporal-note { margin-top: 11px; }
}
@media (max-width: 390px) {
  #mapsExplorerApp:not(.is-panorama) .maps-proto-days { gap: 4px; }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-days .maps-scheme-period-button > span { font-size: 11px; }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-days .maps-scheme-period-button > small { font-size: 9px; }
}

/* v161 · Selector horario compacto y centrado solo en celulares. */
@media (max-width: 720px) {
  #mapsExplorerApp:not(.is-panorama) .maps-proto-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-timeline button {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }
  #mapsExplorerApp:not(.is-panorama) .maps-proto-time-select {
    flex: 0 0 116px;
    width: 116px;
    max-width: 116px;
    height: 42px;
    min-width: 0;
    padding: 0 9px;
    text-align: center;
    text-align-last: center;
  }
}

/* v164: controles reales con las mismas medidas que la maqueta. */
#mapsExplorerApp:not(.is-panorama) .maps-proto-timeline button:disabled {
  opacity: .42; cursor: default;
}


/* v172 · Panorama regional (cinco productos, intervalos reales de 6 h). */
#mapsPanoramaIntervals[hidden] { display: none !important; }
.maps-panorama-field--day { flex-wrap: wrap; }
.maps-panorama-intervals { min-width: 0; width: 100%; margin-top: 8px; }
.maps-panorama-intervals label {
  display: block; margin-bottom: 6px; color: var(--ink-600);
  font-size: 10px; font-weight: 850; letter-spacing: .045em;
}
.maps-panorama-interval-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.maps-panorama-interval-row button {
  flex: 0 0 29px; width: 29px; height: 35px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: #fff; cursor: pointer; font-size: 20px;
}
.maps-panorama-interval-row button:disabled { opacity: .35; cursor: default; }
.maps-panorama-interval-row select {
  min-width: 0; flex: 1; height: 35px; border: 1px solid var(--line-strong);
  border-radius: 9px; color: var(--ink-800); background: #fff; padding: 0 5px;
  font-size: 11px; font-weight: 750;
}
.maps-panorama-interval-row select:focus-visible,
.maps-panorama-interval-row button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 1249px) {
  .maps-panorama-field--day { display: flex; flex-wrap: wrap; }
  .maps-panorama-intervals { margin-top: 0; }
  .maps-panorama-interval-row { justify-content: center; }
  .maps-panorama-interval-row select { flex: 0 1 180px; max-width: 180px; }
}
@media (max-width: 720px) {
  #mapsExplorerApp.is-panorama .maps-panorama-products {
    grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%;
  }
  #mapsExplorerApp.is-panorama .maps-panorama-product:nth-child(-n+3) { grid-column: span 2; }
  #mapsExplorerApp.is-panorama .maps-panorama-product:nth-child(n+4) { grid-column: span 3; }
  .maps-panorama-product { min-height: 49px; padding: 6px 3px; }
  .maps-panorama-product-icon { font-size: 15px; }
  .maps-panorama-product strong { font-size: 10px; }
  .maps-panorama-intervals { margin-top: 4px; }
}


/* ============================================================
   PORTADA · ÚLTIMAS NOTAS (debajo del pronóstico extendido)
   ============================================================ */
.home-notes-section[hidden] { display: none !important; }
.home-notes-heading { align-items: center; margin-bottom: 17px; }
.home-notes-heading h2 { margin: 0; }
.home-notes-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.home-notes-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-notes-all:focus-visible, .home-note-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.home-notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-note-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .18s var(--ease), border-color .18s ease, box-shadow .18s ease;
}
.home-note-card:hover { transform: translateY(-2px); border-color: #b6d4e0; box-shadow: 0 15px 34px rgba(8,35,53,.12); }
.home-note-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #dcecf2; }
.home-note-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-note-media--missing {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #123e59, #087fa5);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.home-note-body { display: grid; gap: 9px; padding: 19px 22px 22px; }
.home-note-date { color: var(--ink-500); font-size: 11px; font-weight: 750; }
.home-note-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.2; color: var(--ink-950); font-size: 21px; letter-spacing: -.025em; }
.home-note-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ink-700); font-size: 13px; line-height: 1.5; }
@media (max-width: 720px) {
  .home-notes-heading { gap: 10px; }
  .home-notes-heading h2 { font-size: 24px; }
  .home-notes-all { font-size: 11px; }
  .home-notes-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-note-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); border-radius: 17px; }
  .home-note-media { position: relative; align-self: stretch; aspect-ratio: auto; min-height: 130px; }
  .home-note-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .home-note-body { align-content: center; gap: 5px; padding: 12px 13px; }
  .home-note-date { font-size: 10px; }
  .home-note-title { font-size: 15px; -webkit-line-clamp: 3; }
  .home-note-summary { font-size: 11px; -webkit-line-clamp: 2; line-height: 1.35; }
}
@media (max-width: 355px) {
  .home-note-card { grid-template-columns: 96px minmax(0, 1fr); }
  .home-note-media { min-height: 124px; }
  .home-note-body { padding: 10px; }
  .home-note-title { font-size: 14px; }
}

/* v177 · Filtros editoriales y vista de artículo (sin modificar las tarjetas de portada). */
.reports-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.reports-filter {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.reports-filter:hover { background: var(--surface-blue); border-color: #9fc8d9; }
.reports-filter.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.reports-filter:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.reports-filters + .reports-grid { margin-top: 18px; }
.reports-filters[hidden], .reports-grid[hidden], .report-detail[hidden] { display: none !important; }
@media (max-width: 720px) {
  .reports-filters { gap: 7px; margin-top: 18px; }
  .reports-filter { min-height: 34px; padding: 7px 11px; font-size: 11px; }
}


/* ============================================================
   Tiempo de Sur · Etapa 1.1 · Hero escritorio
   La columna izquierda agrupa pronóstico y gráfico en el DOM,
   sin grilla de filas independientes. El mapa se alinea arriba.
   Solo >=1020px; en móviles el JS restaura los nodos originales.
   ============================================================ */
@media (min-width: 1020px) {
  #forecastApp > .hero.has-integrated-map {
    grid-template-rows: auto auto;
    align-items: start;
  }
  #forecastApp > .hero.has-integrated-map > .hero-topline {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  #forecastApp > .hero.has-integrated-map > .hero-main {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding-bottom: 28px;
  }
  #forecastApp > .hero.has-integrated-map > .hero-main > .hero-trend-wrap {
    width: 100%;
    min-width: 0;
    padding: 12px 0 0;
    flex: 0 0 auto;
  }
  #forecastApp > .hero.has-integrated-map > #homeMapSection {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-content: flex-start;
    padding-top: 11px;
  }
  #forecastApp > .hero.has-integrated-map .hero-unified-trend .hero-mobile-trend-chart {
    max-width: 100%;
  }
}

/* Tiempo de Sur · Etapa 1.2: título del mapa sin sobreetiqueta en escritorio.
   Conservamos el espacio de la línea eliminada para no acercar el título
   al bloque de observaciones. El diseño móvil no cambia. */
@media (min-width: 1020px) {
  #forecastApp > .hero.has-integrated-map .forecast-map-heading .section-kicker {
    display: none;
  }
  #forecastApp > .hero.has-integrated-map .forecast-map-heading h2 {
    margin-top: 18px;
  }
}


/* ============================================================
   Etapa 2 · Hero: cinco categorías de precipitación máxima horaria.
   La curva térmica ya no se dibuja; no cambia la grilla general.
   ============================================================ */
.hero .hero-unified-trend .hero-mini-panel-label {
  display: block;
  margin: 3px 0 6px;
  font-size: 10px;
  line-height: 1.2;
  color: #d5ecf3;
  font-weight: 800;
}
.hero .hero-unified-trend .hero-mini-precip-level-label {
  fill: #e3f2f7;
  font: 760 9px Inter, ui-sans-serif, sans-serif;
}
.hero .hero-unified-trend .hero-mini-precip-guide {
  stroke: #d7edf6;
  stroke-opacity: .43;
  stroke-width: .75;
  stroke-dasharray: 3 4;
}
.hero .hero-unified-trend .hero-mini-missing-mark {
  stroke: #e1edf3;
  stroke-width: 1.4;
  stroke-dasharray: 2 2;
}
.hero .hero-unified-trend .hero-mini-dry-note {
  display: block;
  padding: 18px 10px 21px;
  text-align: center;
  color: #c9e5ef;
  font-weight: 700;
  font-size: 12px;
}
/* También eliminamos la sobreetiqueta en la versión móvil. */
@media (max-width: 1019px) {
  #homeMapSection .forecast-map-heading .section-kicker { display: none; }
}


/* Etapa 2, refinamiento: grafico de cinco escalones con tres referencias. */
.hero .hero-unified-trend .hero-mini-svg-dry-note { fill: #c9e5ef; font: 750 12px Inter, ui-sans-serif, sans-serif; }
@media (max-width: 640px) {
  /* Dia seco: solamente enlace horario, sin tarjeta ni mensaje de lluvia. */
  #forecastApp .hero .hero-unified-trend.is-dry-mobile {
    width: 100%;
    padding: 2px 5px 3px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  #forecastApp .hero .hero-unified-trend.is-dry-mobile .hero-mobile-trend-chart { display: none; }
  #forecastApp .hero .hero-unified-trend.is-dry-mobile .hero-mobile-trend-heading { justify-content: flex-end; }
}
@media (min-width: 1020px) {
  /* Ajuste prudente para ganar espacio en alto sin reducir el mapa ni la letra. */
  #pronostico .page-shell { padding-top: 23px; }
  #forecastApp > .hero.has-integrated-map > #homeMapSection {
    padding-top: 7px;
    padding-bottom: 8px;
  }
  #forecastApp > .hero.has-integrated-map .forecast-map-heading h2 { margin-top: 13px; }
  #forecastApp > .hero.has-integrated-map .forecast-map-heading { margin-bottom: 7px; }
  #forecastApp > .hero.has-integrated-map > .hero-main { padding-bottom: 18px; }
}


/* Etapa 2.3 · Sin precipitación: compactar de verdad, sin un SVG vacío.
   No afecta días con lluvia, tormentas o datos incompletos. */
@media (min-width: 641px) {
  #forecastApp .hero .hero-unified-trend.is-dry-desktop {
    padding-top: 11px;
    padding-bottom: 12px;
  }
  #forecastApp .hero .hero-unified-trend.is-dry-desktop .hero-mobile-trend-chart {
    margin-top: 0;
  }
  #forecastApp .hero .hero-unified-trend.is-dry-desktop .hero-mini-panel-label {
    margin: 0;
    padding: 0;
  }
  #forecastApp .hero .hero-unified-trend .hero-mini-graphs--dry {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  #forecastApp .hero .hero-unified-trend .hero-mini-dry-message {
    color: #c9e5ef;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
  }
}

/* Observaciones optativas para todas las localidades, sin reservar
   alturas de tarjeta cuando no hay datos válidos. */
#forecastApp > .hero .hero-now[hidden] { display: none !important; }
#forecastApp > .hero:not(.has-observations) .hero-topline { min-height: 0; }
@media (min-width: 1020px) {
  #forecastApp > .hero.has-integrated-map:not(.has-observations) > .hero-topline {
    align-items: flex-start;
  }
}


/* ================================================================
   Tiempo de Sur · Hero · alineacion inferior flexible (escritorio)
   El mapa determina la altura de la fila cuando es mas alto.
   La columna izquierda se estira dentro de esa fila y el margen
   automatico de las metricas distribuye el espacio libre ANTES
   de "Viento / Rafagas / Isoterma". No mueve ni estira las barras.
   Si el pronostico es mas largo, la fila crece naturalmente.
   ================================================================ */
@media (min-width: 1020px) {
  #forecastApp > .hero.has-integrated-map > .hero-main {
    align-self: stretch;
    padding-bottom: 8px; /* misma reserva que el pie del mapa */
  }
  #forecastApp > .hero.has-integrated-map > .hero-main > .hero-metrics {
    margin-top: auto;
  }
}

/* Movil sin precipitaciones: el enlace sigue disponible, pero
   ocupa menos alto dentro del hero y no deja un hueco vacio. */
@media (max-width: 640px) {
  #forecastApp > .hero .hero-trend-wrap:has(> .hero-unified-trend.is-dry-mobile) {
    padding-bottom: 8px;
  }
  #forecastApp > .hero .hero-unified-trend.is-dry-mobile {
    margin-top: 2px;
  }
  /* La fecha del mapa se muestra sobre un fondo claro en movil. */
  #homeMapSection .forecast-map-period {
    color: #31576b;
  }
}


/* Etapa 2.5: acceso horario independiente y alineacion del mapa.
   La grilla crece naturalmente cuando el contenido izquierdo es mas alto.
   El mapa apoya su tarjeta en la misma referencia inferior que el panel.
*/
@media (min-width: 1020px) {
  #forecastApp > .hero.has-integrated-map > #homeMapSection {
    align-self: stretch;
    justify-content: flex-end;
    padding-bottom: 8px;
  }
  #forecastApp > .hero.has-integrated-map > .hero-main {
    padding-bottom: 8px;
  }
  #forecastApp > .hero.has-integrated-map > .hero-main > .current-hourly-launcher {
    display: flex;
    padding: 8px 0 7px;
    margin: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
  }
  #forecastApp > .hero.has-integrated-map > .hero-main > .hero-trend-wrap {
    padding-top: 0;
  }
}
/* El grafico ya no es boton de navegacion. Mantiene su aspecto, no el cursor clicable. */
#forecastApp .hero .hero-unified-trend { cursor: default; }
#forecastApp .hero .hero-unified-trend .hero-mobile-trend-chart { margin-top: 0; }
#forecastApp .hero .hero-unified-trend { padding-top: 13px; }
#forecastApp .hero .hero-unified-trend.is-dry-desktop { padding-top: 11px; }
/* En el grafico no queda el renglon que antes ocupaba el enlace. */
#forecastApp .hero .hero-unified-trend .hero-mobile-trend-heading { display: none; }
/* Estilo unico de acceso secundario, dentro del pronostico y NO del grafico. */
#forecastApp > .hero .hero-main > .current-hourly-launcher {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 7px;
  margin: 0;
  flex: 0 0 auto;
}
#forecastApp > .hero .hero-main > .current-hourly-launcher .current-hourly-toggle {
  min-height: 34px;
  padding: 5px 13px;
  font-size: 12px;
  color: #f1fbff;
  background: rgba(5,35,52,.16);
  border: 1px solid rgba(192,229,242,.35);
  border-radius: 999px;
  box-shadow: none;
}
#forecastApp > .hero .hero-main > .current-hourly-launcher .current-hourly-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.65);
  box-shadow: none;
}
@media (max-width: 1019px) {
  #forecastApp > .hero .hero-main > .current-hourly-launcher { padding: 8px 0 2px; }
}
@media (max-width: 640px) {
  /* Sin lluvia no queda ninguno de los dos bloques graficos. */
  #forecastApp > .hero .hero-trend-wrap:has(> .hero-unified-trend.is-dry-mobile) {
    display: none;
  }
  #forecastApp > .hero .hero-main > .current-hourly-launcher {
    justify-content: flex-end;
    padding: 13px 0 1px;
  }
}


/* Etapa 2.6 · Dos retoques exclusivamente en celular.
   1) Estado seco: dar aire al enlace horario antes del borde redondeado.
   2) Periodo del mapa: asegurar contraste sobre la pagina clara.
   No afecta los dias con barras ni la maquetacion de escritorio. */
@media (max-width: 640px) {
  #forecastApp > .hero:has(.hero-unified-trend.is-dry-mobile) > .hero-main {
    padding-bottom: 19px;
  }
  #homeMapSection #homeMapPeriod.forecast-map-period {
    color: #31576b;
  }
}


/* Tiempo de Sur · Etapa 3.1 · Solo tarjetas de «Próximos días».
   No modifica «Pronóstico extendido», resumen, ni interacción diaria. */
@media (min-width: 721px) {
  #dayStrip { align-items: stretch; }
  #dayStrip > .day-card.day-card-simple {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 29px 18px 20px;
    min-height: 0;
  }
  /* Distintivos operativos requieren espacio superior en toda la fila. */
  #dayStrip:has(.day-attention-badges:not(:empty)) > .day-card.day-card-simple,
  #dayStrip:has(.day-badge) > .day-card.day-card-simple { padding-top: 42px; }
  #dayStrip > .day-card .day-name { font-size: 17px; line-height: 1.22; }
  #dayStrip > .day-card .day-date { font-size: 12px; margin-top: 3px; }
  #dayStrip > .day-card .day-icon {
    width: 73px;
    height: 73px;
    margin: 8px auto 1px;
  }
  #dayStrip > .day-card .day-temp { font-size: 23px; line-height: 1.15; }
  #dayStrip > .day-card .day-event,
  #dayStrip > .day-card .day-event.is-relevant {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 0 2px;
    font-size: 13px;
    line-height: 1.38;
    font-weight: 670;
    text-wrap: pretty;
    overflow-wrap: break-word;
  }
}
@media (min-width: 721px) and (max-width: 1050px) {
  #dayStrip > .day-card.day-card-simple { padding-left: 11px; padding-right: 11px; }
  #dayStrip > .day-card .day-event,
  #dayStrip > .day-card .day-event.is-relevant { font-size: 12px; }
}
@media (max-width: 720px) {
  /* El layout de dos columnas y el grupo icono-temperaturas permanecen intactos. */
  #dayStrip > .day-card.day-card-simple { padding-bottom: 17px !important; }
  #dayStrip .day-card-mobile-summary {
    font-size: 13px !important;
    line-height: 1.46 !important;
    font-weight: 620 !important;
    color: #155b75 !important;
    text-wrap: pretty;
  }
  /* El periodo del mapa está fuera del hero y sobre fondo claro. */
  #homeMapSection #homeMapPeriod.forecast-map-period {
    color: #31576b !important;
    -webkit-text-fill-color: #31576b;
  }
}


/* Etapa 3.2 · Afinado de «Próximos días» exclusivamente.
   Compactación fluida en escritorio: sin altura rígida, sin truncar textos.
   En móvil, misma tipografía y disposición, con un peso menos intenso.
   «Pronóstico extendido» queda fuera de #dayStrip y no se modifica. */
@media (min-width: 721px) {
  #dayStrip > .day-card.day-card-simple {
    padding-top: 25px;
    padding-bottom: 18px;
  }
  /* Si hay distintivos, respetar el espacio superior de seguridad. */
  #dayStrip:has(.day-attention-badges:not(:empty)) > .day-card.day-card-simple,
  #dayStrip:has(.day-badge) > .day-card.day-card-simple {
    padding-top: 42px;
  }
  #dayStrip > .day-card .day-icon { margin-top: 6px; }
  #dayStrip > .day-card .day-event,
  #dayStrip > .day-card .day-event.is-relevant { margin-top: 7px; }
}
@media (max-width: 720px) {
  #dayStrip .day-card-mobile-summary { font-weight: 540 !important; }
}


/* ETAPA 4 · Detalle diario: navegación, legibilidad y mapa, sin tocar datos. */
#dayStrip .day-card[aria-selected="true"]::after {
  left: 23%; right: 23%; height: 4px;
}
#dayDetail .daily-story-header {
  display: flex; flex-direction: row; justify-content: space-between;
  align-items: flex-start; flex-wrap: nowrap; gap: 12px;
}
#dayDetail .daily-detail-close {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #b7cdd9; border-radius: 999px;
  background: #f4f9fb; color: #164b65; font: inherit;
  font-size: 12px; font-weight: 750; line-height: 1.2;
  padding: 8px 12px; cursor: pointer;
}
#dayDetail .daily-detail-close span { font-size: 18px; line-height: .8; font-weight: 450; }
#dayDetail .daily-detail-close:hover { border-color: #81b4cc; background: #eaf5f9; }
#dayDetail .daily-detail-close:focus-visible { outline: 3px solid #36a7cc; outline-offset: 3px; }
#dayDetail .day-period img { margin-block: 0; }
#dayDetail .period-wind-label { color: #54768a; }
#dayDetail .period-wind-value, #dayDetail .period-gust-value { line-height: 1.25; }
#dayDetail .daily-map-heading { margin-bottom: 8px; }
/* El mapa puede aprovechar mejor el ancho disponible en escritorio. */
@media (min-width: 1021px) {
  #dayDetail .daily-map-card { width: min(100%, 1080px); }
  #dayDetail .daily-map-card .forecast-map-image { max-height: 78svh; }
}
@media (max-width: 720px) {
  #dayDetail .daily-story-header h3 { min-width: 0; font-size: clamp(22px, 5vw, 29px); }
  #dayDetail .daily-detail-close { padding: 7px 9px; font-size: 11px; }
  /* Cuatro períodos en la misma fila. Se conservan velocidad, dirección y ráfagas. */
  #dayDetail .daily-evolution { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #dayDetail .day-period { gap: 5px; padding-inline: 3px; }
  #dayDetail .period-wind-label { display: none; }
  #dayDetail .day-period-wind { gap: 4px; }
  #dayDetail .day-period-wind .period-wind-value {
    white-space: normal; overflow-wrap: normal; font-size: 10.5px; line-height: 1.25;
  }
  #dayDetail .day-period-wind .period-gust-value {
    white-space: normal; font-size: 10px; line-height: 1.25;
  }
}
@media (max-width: 380px) {
  #dayDetail .day-period-wind .period-wind-value { font-size: 9.5px; }
  #dayDetail .day-period-wind .period-gust-value { font-size: 9px; }
}


/* Etapa 4.2: isoterma 0 °C dentro del detalle meteorológico. */
#dayDetail .day-period-iso {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 100%; padding-top: 7px; margin-top: 3px;
  border-top: 1px solid var(--line); color: var(--ink-700);
  font-size: 10px; line-height: 1.2; text-align: center;
}
#dayDetail .day-period-iso > span { color: var(--ink-500); font-size: 10px; font-weight: 750; }
#dayDetail .day-period-iso > strong { color: var(--ink-900); font-size: 12px; font-weight: 800; }
.hour-detail-value-iso, .hour-value-iso { color: var(--ink-700); font-weight: 750; }
@media (max-width: 720px) {
  #dayDetail .day-period-iso { font-size: 9px; padding-top: 6px; }
  #dayDetail .day-period-iso > span { font-size: 8.5px; white-space: nowrap; }
  #dayDetail .day-period-iso > strong { font-size: 9px; line-height: 1.25; overflow-wrap: anywhere; }
}

/* Etapa 4.3: detalle único bajo la fila seleccionada, solo en celular. */
@media (max-width: 720px) {
  #dayStrip > #dayDetail {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 5px 0 9px;
  }
}
/* Isoterma: misma jerarquía cromática que el viento y las ráfagas. */
#dayDetail .day-period-iso > span { color: #54768a; }
#dayDetail .day-period-iso > strong { color: var(--ink-900); }
.hour-detail-value.hour-detail-value-iso,
.hour-value.hour-value-iso { color: var(--blue-dark); font-weight: 750; }

/* Avisos diarios v2 — sustituye los paneles de atención del sistema anterior. */
.aviso-diario { border:1px solid #e0be45; border-left:5px solid #c39a1d; border-radius:14px; background:#fffaf0; padding:16px 18px; margin-top:12px; color:#273d4a; }
.aviso-diario--rojo { border-color:#edaa69; border-left-color:#d47720; background:#fff4e9; }
.aviso-diario--violeta { border-color:#e39696; border-left-color:#c33232; background:#fff0f0; }
.aviso-diario-encabezado {display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px;}
.aviso-diario-encabezado strong {font-size:17px;letter-spacing:-.01em;}
.aviso-diario-encabezado span {font-size:10px;font-weight:850;letter-spacing:.05em;}
.aviso-diario p {font-size:13px;line-height:1.5;margin:9px 0 0;}
.aviso-diario .aviso-diario-metrica {font-size:14px;font-weight:850;}
.day-attention-badge--orange {background:#f4a84a;border-color:#cb792a;color:#503008;}
@media(max-width:720px){.aviso-diario{padding:13px 14px}.aviso-diario-encabezado strong{font-size:15px}}

/* v2.2 · Indicador circular de aviso en paneles y recuperación del texto descriptivo. */
.aviso-diario-encabezado > span { text-transform:none; letter-spacing:0; font-size:12px; font-weight:750; }
@media(min-width:900px) {
  .day-attention-dot { width:32px; height:32px; }
  .day-attention-dot svg { width:17px; height:17px; }
}


/* Eventos cercanos GFS v1 — estilo autónomo, sin cambiar avisos diarios. */
#currentAttentionSection { margin-top: 15px; }
.eventos-cercanos-list { display:grid; gap:10px; }
.evento-cercano { padding:14px 17px; border-radius:13px; border:1px solid #dec675; background:#fffaf0; border-left:4px solid #c9a122; }
.evento-cercano--rojo { background:#fff3e6; border-color:#e4b17d; border-left-color:#d57c25; }
.evento-cercano--violeta { background:#fff0f0; border-color:#e7aaaa; border-left-color:#c83b3b; }
.evento-cercano-heading { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.evento-cercano-heading strong { font-weight:800; font-size:16px; }
.evento-cercano-level { margin-left:auto; font-size:12px; font-weight:750; white-space:nowrap; }
.evento-cercano-icon { display:flex; align-items:center; justify-content:center; width:27px; height:27px; border-radius:50%; background:#f2cf32; color:#533b00; flex:0 0 27px; }
.evento-cercano-icon--rojo { background:#ef9b3a; color:#533000; }
.evento-cercano-icon--violeta { background:#cc4141; color:white; }
.evento-cercano-icon svg { width:15px; height:15px; }
.evento-cercano p { margin:9px 0 0; line-height:1.5; font-size:14px; }
.eventos-cercanos-nota { margin:6px 2px 0; font-size:11px; color:#64748b; }
@media(max-width:720px) { .evento-cercano { padding:12px; } .evento-cercano-heading strong { font-size:14px; } }

/* Hero: dirección completa en escritorio y abreviada en toda la vista móvil (<= 720 px). */
.hero .hero-metric-direction--short { display: none; }
@media (max-width: 720px) {
  .hero .hero-metric-direction--long { display: none; }
  .hero .hero-metric-direction--short { display: block; }
}

/* v16 · En escritorio, mantener AHORA a la derecha del nombre.
   La fila flexible anterior podía saltar al crecer unos caracteres el viento.
   En pantallas estrechas se conserva la disposición adaptable existente. */
@media (min-width: 1280px) {
  #forecastApp > .hero .hero-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    column-gap: 14px;
  }
  #forecastApp > .hero .hero-topline .hero-place-main { min-width: 0; }
  #forecastApp > .hero .hero-topline .hero-now { min-width: 0; }
}

/* v17 · Observaciones en celular: dirección y velocidad en una sola línea.
   No altera el pronóstico, la tarjeta ni la distribución de escritorio. */
@media (max-width: 640px) {
  .hero-now:not(.is-wind-only) .hero-now-wind-main {
    white-space: nowrap;
  }
  .hero-now:not(.is-wind-only) .hero-now-wind-main strong {
    font-size: clamp(13px, 3.8vw, 16px);
    letter-spacing: -.025em;
    white-space: nowrap;
  }
}

/* v18 · Meteogramas: dos variables opcionales, controles compactos y sin título duplicado. */
.meteogram-page .meteogram-variable-controls { gap: 0; }
.meteogram-page .meteogram-variable-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.meteogram-page .meteogram-controls-card { align-items: end; gap: 12px 18px; padding-block: 12px; }
.meteogram-page .meteogram-control-group { align-self: end; }
.meteogram-page .meteogram-field > span { margin-bottom: 5px; }
.meteogram-page .meteogram-dropdown-trigger { min-height: 40px; padding-block: 8px; }
.meteogram-page .meteogram-card-heading { min-height: 0; }
.meteogram-page .meteogram-chart-card { padding-top: 9px; }
.meteogram-page #meteogramWindowDescription { margin: 0; }
.meteogram-page .meteogram-chart-shell { margin-top: 9px; }
@media (min-width: 981px) {
  .meteogram-page .meteogram-controls-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .meteogram-page .meteogram-day-buttons { flex-wrap: nowrap; }
  .meteogram-page .meteogram-day-button { min-width: 0; padding-inline: 8px; }
}
@media (min-width: 721px) and (max-width: 980px) {
  .meteogram-page .meteogram-controls-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .meteogram-page .meteogram-controls-card { grid-template-columns: 1fr; gap: 8px; padding: 11px 13px; }
  .meteogram-page .meteogram-variable-selects { grid-template-columns: 1fr; gap: 7px; }
  .meteogram-page .meteogram-dropdown-trigger { min-height: 42px; }
  .meteogram-page .meteogram-chart-card { padding-top: 12px; }
  .meteogram-page .meteogram-chart-shell { margin-top: 8px; }
}

/* v19 · Meteogramas: sin línea de fecha redundante bajo los días.
   La fecha/hora permanecen en el recuadro de lectura y en el eje. */
.meteogram-page .meteogram-card-heading:has(.meteogram-legend:empty) { display: none; }
.meteogram-page .meteogram-chart-card:has(.meteogram-legend:empty) .meteogram-chart-shell { margin-top: 0; }
.meteogram-page .meteogram-card-heading:not(:has(.meteogram-legend:empty)) {
  justify-content: flex-start;
  margin-bottom: 0;
}


/* v20 · Meteogramas móviles: recuperar ancho útil con dos variables.
   La leyenda se sustituye por la lectura horaria existente, sin duplicaciones.
   JS y CSS comparten estos anchos exactos para los ejes fijos. */
@media (max-width: 720px) {
  .meteogram-page .meteogram-chart-shell.is-dual {
    grid-template-columns: var(--meteogram-mobile-left-axis-width, 44px) minmax(0, 1fr) var(--meteogram-mobile-right-axis-width, 44px);
  }
  .meteogram-page .meteogram-chart-shell.is-dual .meteogram-fixed-axis-tick text {
    font-size: 10px;
  }
  .meteogram-page .meteogram-chart-shell.is-dual .meteogram-fixed-axis-title {
    font-size: 11px;
  }
  .meteogram-page .meteogram-chart-card { padding-inline: 7px; }
  .meteogram-page .meteogram-chart-shell { margin-inline: -2px; }
}


/* Avisos públicos por período: paleta compartida, no afecta mapas ni métricas. */
:root { --tds-aviso-1:#FACC15; --tds-aviso-2:#DC2626; --tds-aviso-3:#7E22CE; --tds-aviso-ink:#422D00; }
.aviso-diario, .evento-cercano { background:var(--tds-aviso-1); color:var(--tds-aviso-ink); border:0; box-shadow:none; }
.aviso-diario--rojo, .evento-cercano--rojo { background:var(--tds-aviso-2); color:#fff; }
.aviso-diario--violeta, .evento-cercano--violeta { background:var(--tds-aviso-3); color:#fff; }
.day-attention-dot--yellow { background:var(--tds-aviso-1); color:var(--tds-aviso-ink); border-color:transparent; }
.day-attention-dot--red { background:var(--tds-aviso-2); color:#fff; border-color:transparent; }
.day-attention-dot--violet { background:var(--tds-aviso-3); color:#fff; border-color:transparent; }
.evento-cercano-icon, .evento-cercano-icon--rojo, .evento-cercano-icon--violeta { background:transparent; color:inherit; }
.aviso-viento .aviso-diario-encabezado { justify-content:flex-start; flex-wrap:nowrap; gap:10px; }
.aviso-viento .aviso-diario-encabezado strong { font-size:clamp(17px,1.5vw,21px); color:inherit; }
.aviso-viento .aviso-viento-icon { display:inline-flex; flex:0 0 25px; }
.aviso-viento-icon svg { width:25px; height:25px; }
.aviso-viento p { font-size:14px; color:inherit; }
.aviso-viento .aviso-incertidumbre { font-size:12px; }
.avisos-hero-card { padding:0; margin:0; border:0; background:none; box-shadow:none; }
.avisos-hero-card .aviso-diario { margin-top:0; }

/* Avisos de tormenta: misma composición que viento. */
.aviso-tormentas .aviso-diario-encabezado { justify-content:flex-start; flex-wrap:nowrap; gap:10px; }
.aviso-tormentas .aviso-diario-encabezado strong { font-size:clamp(17px,1.5vw,21px); color:inherit; }
.aviso-tormentas .aviso-tormentas-icon { display:inline-flex; flex:0 0 25px; }
.aviso-tormentas-icon svg { width:25px; height:25px; }
.aviso-tormentas p { font-size:14px; color:inherit; }
.aviso-tormentas .aviso-incertidumbre { font-size:12px; }

/* Avisos del período: última fila del hero, sin alterar sus otras áreas. */
#forecastApp > .hero > #currentAttentionSection {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 8px 30px 20px;
}
#forecastApp > .hero > #currentAttentionSection[hidden] { display: none; }
@media (min-width: 1020px) {
  #forecastApp > .hero.has-integrated-map > #currentAttentionSection {
    grid-row: 3;
    padding: 8px 25px 20px 31px;
  }
}
@media (max-width: 1019px) {
  #forecastApp > .hero > #currentAttentionSection { padding: 4px 26px 20px; }
}
@media (max-width: 720px) {
  #forecastApp > .hero > #currentAttentionSection { padding: 4px 17px 17px; }
}
