/* ---------- Bloque: viento ---------- */
.vi-fila { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; align-items: stretch; }
.vi-der { flex: 1 1 360px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: .9rem; }
#viento-reloj { flex: 0 1 300px; min-width: 0; width: 100%; max-width: 300px; display: flex; }
#viento-reloj .vr-panel { flex: 1; }
.vr-panel { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: 1rem 1rem 1.1rem; text-align: center; }
.vr-svg { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto; }
.vr-aro { stroke: #2d3e57; stroke-width: 6; }
.vr-m { stroke: #55657d; stroke-width: 2; }
.vr-mg { stroke: var(--valor); stroke-width: 3.5; }
.vr-num { fill: #8a9bb2; font: 700 12px 'Segoe UI', Arial, sans-serif; text-anchor: middle; }
.vr-titulo { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: .7rem; color: var(--valor); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.vr-viento { width: 26px; height: 26px; flex: none; fill: none; stroke: #00d2d3; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(0,210,211,.5)); }
.vr-svg-dir { max-width: 170px; margin-top: .8rem; }
.vr-cardinal { fill: #e8eef7; font: 800 15px 'Segoe UI', Arial, sans-serif; text-anchor: middle; }
.vr-norte { fill: #ff4757; }
.vr-peq { font-size: 9px; }
.vr-flecha-d { fill: #ff4757; }
.vr-flecha-i { fill: #c2303f; }
.vr-flecha-d, .vr-flecha-i { stroke: #0a0f18; stroke-width: 1; stroke-linejoin: round; }
.vr-aguja { transform-origin: 120px 120px; transition: transform 1.2s cubic-bezier(.17, .89, .32, 1.3); }
.vr-aguja line { stroke: #ff4757; stroke-width: 3.5; stroke-linecap: round; }
.vr-eje { fill: #000; stroke: #ff4757; stroke-width: 3; }
.vr-valor { fill: var(--valor); font: 800 36px 'Segoe UI', Arial, sans-serif; text-anchor: middle; }
.vr-unidad { fill: var(--texto-suave); font: 700 13px 'Segoe UI', Arial, sans-serif; text-anchor: middle; }
.vr-dir { margin: .4rem 0 .9rem; font-size: 1.05rem; font-weight: 700; color: var(--texto); }
.vr-max { background: #0f1824; border: 1px solid var(--borde); border-radius: 10px; padding: .7rem; }
.vr-max-t { color: var(--texto-suave); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.vr-max-v { font-size: 1.6rem; font-weight: 800; color: #00d2d3; margin: .1rem 0 .3rem; }
.vr-max-v small { font-size: .75rem; color: var(--texto-suave); font-weight: 600; }
.vr-max-h { display: inline-block; background: #fff; color: #000; border-radius: 6px; padding: .2rem .7rem; font-weight: 900; font-size: 1.05rem; }
.vr-off .vr-valor, .vr-off .vr-dir, .vr-off .vr-svg-dir, .vr-off .vr-max-v { opacity: .45; }
.vr-aguja-dir { transform-origin: 100px 100px; transition-duration: .9s; }

/* ---------- Tabla de viento 1 h – 48 h (compacta) ---------- */
#viento-tabla { flex: 0 0 auto; min-width: 0; }
.vt-panel { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: .6rem .9rem .7rem; }
.vt-origen { display: flex; justify-content: space-between; gap: .5rem; font-size: .74rem; color: var(--texto-suave); margin-bottom: .2rem; }
.vt-origen b { color: var(--acento); }
.vt-tabla { width: 100%; border-collapse: collapse; text-align: center; font-variant-numeric: tabular-nums; }
.vt-tabla th, .vt-tabla td { padding: .26rem .2rem; }
.vt-tabla thead th { color: var(--texto-suave); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.vt-tabla thead tr:first-child th { border-bottom: 1px solid var(--borde); }
.vt-tabla thead th img { width: 22px; height: 22px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; vertical-align: middle; margin-right: .3rem; }   /* iconos negros -> blancos, como en el resto de la web */
.vt-tabla thead th span { vertical-align: middle; }
.vt-tabla thead tr:nth-child(2) th { border-bottom: 1px solid var(--borde); padding: .1rem .2rem; }
.vt-tabla tbody tr + tr > * { border-top: 1px solid rgba(36, 52, 74, .7); }
.vt-tabla tbody th.vt-ult { text-align: left; color: var(--texto); font-weight: 700; padding-left: .4rem; font-size: .9rem; }
.vt-tabla thead th.vt-ult { text-align: left; padding-left: .4rem; }
.vt-dir { white-space: nowrap; color: var(--texto); font-weight: 600; font-size: .9rem; }
.vt-dir .flecha { color: #fff; vertical-align: middle; margin-right: .3rem; }
.vt-gr { color: var(--texto-suave); font-size: .7rem; font-weight: 500; margin-left: .35rem; }
.vt-v { color: var(--texto); font-weight: 700; font-size: .95rem; }
.vt-v.vt-x { color: var(--valor); }
@media (max-width: 520px) {
  .vt-panel { padding: .6rem .5rem .7rem; }
  .vt-dir { white-space: normal; line-height: 1.1; }
  .vt-gr { display: block; margin-left: 0; }
  .vt-v { font-size: .92rem; }
  .vt-tabla thead th { font-size: .6rem; letter-spacing: 0; }
}

/* ---------- Rosa de vientos ---------- */
#viento-rosa { flex: 1 1 auto; min-height: 340px; display: flex; }
.vo-panel { flex: 1; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: .6rem .7rem .6rem; min-width: 0; }
.vo-barra { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.vo-botones { display: flex; gap: .25rem; flex-wrap: wrap; }
.vo-botones button { background: #0f1824; color: var(--texto-suave); border: 1px solid var(--borde); border-radius: 7px; padding: .25rem .55rem; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.vo-botones button:hover { color: var(--texto); }
.vo-botones button.activo { color: #0b1522; background: var(--acento); border-color: var(--acento); }
.vo-fecha { background: #0f1824; color: var(--texto); border: 1px solid var(--borde); border-radius: 7px; padding: .2rem .4rem; font: inherit; font-size: .8rem; color-scheme: dark; }
.vo-grafico { position: relative; flex: 1 1 auto; min-height: 240px; }
#vo-chart { position: absolute; inset: 0; }
.vo-sin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: var(--texto-suave); pointer-events: none; text-align: center; padding: 0 3rem; }
.vo-titulo { text-align: center; font-weight: 800; font-variant: small-caps; letter-spacing: .03em; color: var(--texto); padding-top: .2rem; }
@media (max-width: 760px) { #viento-rosa { min-height: 0; } .vo-grafico { flex: none; height: 330px; } .vi-der { max-width: 520px; } }
.vo-sin[hidden] { display: none; }
