/* ---------- Datos de la estación por periodo (histórico) ---------- */
.hs-fila { display: flex; justify-content: center; }
.hs-fila > #estadisticas { flex: 1 1 auto; max-width: 1060px; min-width: 0; }
.hs-panel { position: relative; background: var(--panel); border: 1px solid var(--borde); border-radius: 12px; padding: .9rem 1rem .7rem; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: opacity .2s; }
.hs-panel.hs-carga { opacity: .55; }
.hs-cab { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.hs-est { font-size: .78rem; color: var(--texto-suave); }
.hs-est b { color: var(--acento); }
.hs-sel { width: auto; min-width: 14rem; max-width: 100%; flex: 0 0 auto; background: var(--fondo); color: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: .5rem 1rem; font: inherit; font-size: 1.05rem; font-weight: 700; letter-spacing: .5px; text-align: center; text-align-last: center; cursor: pointer; }
.hs-titulo { text-align: center; font-size: 1.05rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin: .7rem 0 .3rem; }
.hs-tabla { width: 100%; border-collapse: collapse; table-layout: fixed; }
.hs-tabla th { font-size: .72rem; color: var(--texto-suave); text-transform: uppercase; border-bottom: 1px solid var(--borde); padding: 0 .2rem .3rem; font-weight: 600; text-align: center; }
.hs-tabla th:first-child { width: 12%; }
.hs-tabla td { padding: .45rem .2rem; border-bottom: 1px solid rgba(36,52,74,.7); text-align: center; vertical-align: middle; line-height: 1.2; }
.hs-tabla tr:last-child td { border-bottom: 0; }
.hs-ico img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; display: block; margin: 0 auto; }
.hs-v { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-v small { font-weight: 400; color: var(--texto-suave); font-size: .72rem; }
.hs-a .hs-v { color: var(--texto); }
.hs-x .hs-v { color: var(--valor); }
.hs-n .hs-v { color: var(--acento); }
.hs-t { display: block; font-size: .7rem; color: var(--texto-suave); margin-top: 1px; }
.hs-l { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .3px; color: var(--texto-suave); font-weight: 600; margin-bottom: 1px; }
.hs-bft { display: inline-block; min-width: 1.5rem; margin-top: 3px; padding: 0 .35rem; border-radius: 6px; font-size: .72rem; font-weight: 700; line-height: 1.3; }
.hs-pie { text-align: center; font-size: .68rem; color: var(--texto-suave); font-style: italic; margin-top: .5rem; }
@media (max-width: 520px) {
  .hs-panel { padding: .8rem .5rem .6rem; }
  .hs-tabla th:first-child { width: 11%; }
  .hs-ico img { width: 22px; height: 22px; }
  .hs-v { font-size: .86rem; }
  .hs-v small { font-size: .62rem; }
  .hs-t { font-size: .62rem; }
}

/* nombre del icono al tocarlo */
.hs-ico { cursor: pointer; }
.hs-tip { position: absolute; z-index: 5; background: #0b1522; color: var(--texto); border: 1px solid var(--acento); border-radius: 8px; padding: .3rem .6rem; font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.5); pointer-events: none; }
.hs-tip[hidden] { display: none; }

.hs-desde { margin-top: .25rem; color: var(--texto); font-weight: 600; }
.hs-desde[hidden] { display: none; }

/* Dos estaciones en una sola tabla: iconos y unidades una vez (columna de la izquierda), G.P. (naranja) y Caseta (azul) lado a lado */
.hs-cab { justify-content: center; }
.hs-dos th.hs-nom { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding-bottom: .35rem; text-align: center; border-bottom: 1px solid var(--borde); }
.hs-dos th.hs-b-gp { color: #f5a524; }
.hs-dos th.hs-b-caseta { color: var(--acento); border-left: 1px solid var(--borde); }
.hs-dos thead tr:nth-child(2) th:nth-child(5) { border-left: 1px solid var(--borde); }
.hs-dos tbody td:nth-child(5) { border-left: 1px solid var(--borde); }
.hs-dos th.hs-nom .hs-desde { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .72rem; color: var(--texto-suave); margin-top: .15rem; }
.hs-dos th:first-child { width: 8%; }
.hs-dos tbody tr { height: 3.9rem; }
.hs-u { display: block; text-align: center; font-size: .62rem; color: var(--texto-suave); margin-top: 2px; line-height: 1; }
.hs-h { display: inline; }
.hs-f { display: inline; }
.hs-f + .hs-h::before { content: ' · '; }
.hs-sin { opacity: .45; }
@media (max-width: 860px) {
  .hs-dos th:first-child { width: 12%; }
  .hs-dos tbody tr { height: auto; }
  .hs-dos th.hs-nom { font-size: .72rem; letter-spacing: .2px; }
  .hs-dos th.hs-nom .hs-desde { font-size: .58rem; }
  .hs-dos th { font-size: .6rem; padding-left: 0; padding-right: 0; }
  .hs-dos td { padding-left: 0; padding-right: 0; }
  .hs-dos .hs-v { font-size: .78rem; letter-spacing: -.3px; }
  .hs-dos .hs-t { font-size: .56rem; line-height: 1.15; }
  .hs-h, .hs-f { display: block; }
  .hs-f + .hs-h::before { content: ''; }
  .hs-dos .hs-l { font-size: .52rem; letter-spacing: 0; }
  .hs-dos .hs-bft { min-width: 1.2rem; padding: 0 .25rem; font-size: .62rem; }
  .hs-dos .hs-ico img { width: 20px; height: 20px; }
  .hs-u { font-size: .54rem; }
}

/* Leyenda de la escala de Beaufort */
.hs-cab { margin-bottom: .6rem; }
.hs-bf { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--borde); }
.hs-bf-cab { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.hs-bf-t { text-align: center; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--texto); }
.hs-bf-n { text-align: center; font-size: .74rem; color: var(--texto-suave); margin: .25rem auto .6rem; max-width: 46rem; line-height: 1.35; }
.hs-bf-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .3rem .9rem; }
.hs-bf-l li { display: flex; align-items: center; gap: .5rem; font-size: .76rem; }
.hs-bf-l .hs-bft { flex: 0 0 auto; min-width: 1.6rem; text-align: center; margin: 0; }
.hs-bf-d b { font-weight: 700; color: var(--texto); }
.hs-bf-d small { color: var(--texto-suave); font-size: .72rem; }
@media (max-width: 520px) { .hs-bf-l { grid-template-columns: 1fr 1fr; gap: .3rem .5rem; } .hs-bf-l li { font-size: .7rem; } .hs-bf-d small { display: block; } }
.hs-bf-b { background: transparent; color: var(--acento); border: 1px solid var(--borde); border-radius: 999px; padding: .2rem .8rem; font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; }
.hs-bf-b:hover { border-color: var(--acento); }
.hs-bf-fin { text-align: center; margin-top: .7rem; }
#hs-bf-cuerpo[hidden] { display: none; }
