/* Explicaciones animadas del módulo Viento (lateral-explica.js) */
.zx-tiene { position: relative; cursor: help; }
.zl-kpi.zx-tiene::after, .zl-paso-cab.zx-tiene::after, .zl-dir.zx-tiene::after {
  content: '?'; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%;
  font: 700 11px/16px system-ui, sans-serif; text-align: center; color: #fff; background: #2f7bdc; opacity: .75;
}
.zl-paso-cab.zx-tiene::after { position: static; display: inline-block; margin-left: 6px; }
.zx-globo {
  position: fixed; z-index: 2147483001; width: 330px; max-width: calc(100vw - 16px);
  background: #fff; color: #1f2a37; border-radius: 12px; padding: 12px 14px 10px;
  box-shadow: 0 10px 34px rgba(15, 25, 40, .28); font: 13px/1.45 system-ui, 'Segoe UI', sans-serif;
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s;
}
.zx-globo.visible { opacity: 1; transform: none; pointer-events: auto; }
.zx-tit { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.zx-globo p { margin: 6px 0; }
.zx-tuyo { background: #f1f6fd; border-radius: 8px; padding: 6px 8px; }
.zx-det summary { cursor: pointer; color: #5b6776; font-size: 12px; }
.zx-det p { font-size: 12px; color: #4a5563; }
.zx-svg { width: 100%; height: auto; display: block; background: #f7f9fb; border-radius: 8px; }
.zx-t { font: 10px system-ui, sans-serif; fill: #2b3440; }
.zx-rojo { fill: #d6453a; } .zx-verde { fill: #2a9d5b; } .zx-azul { fill: #2f7bdc; }
.zx-barra { position: relative; height: 8px; margin: 8px 2px 2px; border-radius: 4px; background: linear-gradient(90deg, #2a9d5b, #e2c140 45%, #d6453a); }
.zx-barra i { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; background: #1f2a37; border-radius: 2px; }
.zx-escala { display: flex; justify-content: space-between; font-size: 10px; color: #6b7684; }

/* animaciones */
@keyframes zx-sopla { 0% { transform: translateX(-10px); opacity: 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(10px); opacity: 0; } }
.zx-sopla { animation: zx-sopla 1.6s linear infinite; }
@keyframes zx-bal1 { 0%, 100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }
@keyframes zx-bal2 { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes zx-bal3 { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.zx-bal1 { animation: zx-bal1 .8s ease-in-out infinite; }
.zx-bal2 { animation: zx-bal2 1.6s ease-in-out infinite; }
.zx-bal3 { animation: zx-bal3 2.8s ease-in-out infinite; }
@keyframes zx-crece { 0% { transform: scaleY(0); } 60%, 100% { transform: scaleY(1); } }
.zx-crece { animation: zx-crece 2.4s ease-out infinite alternate; }
@keyframes zx-vuelca { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }
.zx-vuelca { animation: zx-vuelca 2.2s ease-in-out infinite; }
@keyframes zx-balancea { 0%, 60%, 100% { transform: rotate(0); } 30% { transform: rotate(2.5deg); } }
.zx-balancea { animation: zx-balancea 2.4s ease-in-out infinite; }
@keyframes zx-gira { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(90deg); } 100% { transform: rotate(0); } }
.zx-gira { animation: zx-gira 6s ease-in-out infinite; }

/* Sismo (1.1.0) */
@keyframes zx-sacude { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.zx-sacude { animation: zx-sacude .5s linear infinite; }
@keyframes zx-inercia { 0%, 100% { transform: skewX(0); } 25% { transform: skewX(4deg); } 75% { transform: skewX(-4deg); } }
.zx-inercia { animation: zx-inercia .5s linear infinite; }
@keyframes zx-empuje { 0%, 100% { opacity: .35; transform: translateX(0); } 50% { opacity: 1; transform: translateX(4px); } }
.zx-empuje { animation: zx-empuje 1s ease-in-out infinite; }
@keyframes zx-rapido { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes zx-lento { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
.zx-rapido { animation: zx-rapido .4s ease-in-out infinite; }
.zx-lento { animation: zx-lento 1.6s ease-in-out infinite; }
.zx-poco { animation: zx-rapido .5s ease-in-out infinite; }
.zx-mucho { animation: zx-lento .9s ease-in-out infinite; }
@keyframes zx-recorre { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }
.zx-recorre { offset-path: path('M30 90 L70 36 L140 36 Q190 60 285 100'); animation: zx-recorre 4s ease-in-out infinite alternate; }
@keyframes zx-marco { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(-9deg); } }
.zx-marco { transform-origin: 140px 130px; animation: zx-marco 1.6s ease-in-out infinite; }
@keyframes zx-delta { 0%, 30%, 100% { opacity: 0; } 50%, 80% { opacity: 1; } }
.zx-delta { animation: zx-delta 1.6s ease-in-out infinite; }
@keyframes zx-ductil { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(-10deg); } }
.zx-ductil { transform-origin: 80px 126px; animation: zx-ductil 2s ease-in-out infinite; }
@keyframes zx-rotula { 0%, 30%, 100% { opacity: 0; } 50%, 70% { opacity: 1; } }
.zx-rotula { animation: zx-rotula 2s ease-in-out infinite; }
@keyframes zx-fisura { 0%, 40% { stroke-dasharray: 0 60; } 70%, 100% { stroke-dasharray: 60 0; } }
.zx-fisura { animation: zx-fisura 2s ease-in infinite; }
