/* Mapa de seguimiento de vuelos con la paleta de Aviación Simulada */
.avv { --azul: #0875D1; --marino: #16324F; --oro: #F2B53A; --borde: #DCE6EF; font-size: 15px; }
.avv-prueba { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 12px; background: #FFF6E5; border: 1px solid #FFC98F; color: #5A3A00; font-size: 14px; }
.avv-prueba strong:first-child { display: inline-block; margin-right: .5rem; padding: .15rem .5rem; border-radius: 6px; background: #F29A1F; color: #2A1700; font-size: 11.5px; letter-spacing: .06em; }
.avv-barra { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin-bottom: .75rem; }
.avv-campo { display: flex; flex-direction: column; gap: 4px; font: 600 12.5px Inter, sans-serif; color: var(--marino); }
.avv-campo select, .avv-campo input { min-height: 44px; padding: 0 12px; border: 1px solid #CFDDEA; border-radius: 10px; font: 500 15px Inter, sans-serif; color: var(--marino); background: #fff; }
.avv-campo input { width: min(260px, 70vw); }
.avv-buscar { display: flex; gap: .5rem; align-items: flex-end; }
.avv-buscar button, .avv-btn { min-height: 44px; padding: 0 1rem; border: 0; border-radius: 10px; background: var(--azul); color: #fff; font: 700 14.5px Inter, sans-serif; cursor: pointer; }
.avv-buscar button:hover, .avv-btn:hover { background: #065BA3; }
.avv-filtro { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-size: 14px; color: var(--marino); }
.avv-estado { display: flex; align-items: center; gap: .55rem; margin-bottom: .75rem; padding: .55rem .85rem; border-radius: 10px; background: #F0F6FB; color: var(--marino); font-size: 14px; }
.avv-led { width: 9px; height: 9px; border-radius: 50%; background: #8FA4BC; flex-shrink: 0; }
.avv-estado--ok .avv-led { background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
.avv-estado--aviso { background: #FFF6E5; } .avv-estado--aviso .avv-led { background: #F29A1F; }
.avv-estado--error { background: #FDECEC; color: #8A1C1C; } .avv-estado--error .avv-led { background: #E5484D; }
.avv-cuerpo { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--borde); box-shadow: 0 18px 40px rgba(8, 26, 51, .12); }
.avv-mapa { height: min(72vh, 680px); min-height: 420px; background: #0B2240; }
.avv-mapa .leaflet-tile-pane { filter: saturate(.75) brightness(.97); }
.avv-icono { background: none; border: 0; }
.avv-icono svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); transition: transform .3s ease; }
.avv-icono.is-elegido svg { filter: drop-shadow(0 0 6px rgba(242, 154, 31, .9)); }
.avv-ficha { position: absolute; z-index: 500; top: 12px; right: 12px; width: min(300px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; box-sizing: border-box;
  padding: 1rem 1.1rem; border-radius: 14px; background: rgba(8, 26, 51, .94); color: #DCE8F5; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.avv-ficha[hidden] { display: none; }
.avv-ficha__cs { margin: 0; font: 800 1.5rem/1.1 Barlow, sans-serif; color: #fff; }
.avv-ficha__sub { margin: .25rem 0 .75rem; color: #9FD8FF; font-weight: 600; }
.avv-ficha__sub small { color: #9FB2C8; font-weight: 400; }
.avv-ficha dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0 0 .9rem; font-size: 13.5px; }
.avv-ficha dt { color: #9FB2C8; } .avv-ficha dd { margin: 0; color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; }
.avv-nd { color: #7F93A8; font-family: Inter, sans-serif; font-style: italic; }
.avv-cerrar { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 20px; cursor: pointer; }
.avv-ficha .avv-btn { width: 100%; background: linear-gradient(180deg, #FFC659, #F29A1F); color: #2A1700; }
.avv-traza-msg { margin: .5rem 0 0; font-size: 12.5px; color: #B9CDE2; }
.avv-pie { margin: .75rem 0 0; font-size: 12.5px; color: #5A6F84; }
.avv-aviso { padding: 1rem; border-radius: 12px; background: #F0F6FB; color: var(--marino); }
.avv-aviso--error { background: #FDECEC; color: #8A1C1C; }
.avv .leaflet-control-attribution { font-size: 11px; }
.avv-fondo { position: absolute; z-index: 450; left: 12px; bottom: 28px; width: min(340px, calc(100% - 24px)); box-sizing: border-box; padding: .85rem 1rem; border-radius: 14px;
  background: rgba(8, 26, 51, .94); color: #DCE8F5; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.avv-fondo[hidden] { display: none; }
.avv-fondo p { margin: 0 0 .6rem; } .avv-fondo strong { color: #fff; }
.avv-fondo .avv-btn { width: 100%; background: linear-gradient(180deg, #FFC659, #F29A1F); color: #2A1700; }
.avv-fondo small { display: block; margin-top: .5rem; color: #9FB2C8; }
.avv-enlace { padding: 0; border: 0; background: none; color: #9FD8FF; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) {
  .avv-fondo { left: 8px; bottom: 22px; width: calc(100% - 16px); }
  .avv-mapa { height: 62vh; min-height: 360px; }
  .avv-ficha { top: auto; bottom: 0; right: 0; left: 0; width: 100%; max-height: 55%; border-radius: 14px 14px 0 0; }
  .avv-buscar { flex: 1 1 100%; } .avv-buscar .avv-campo { flex: 1; } .avv-campo input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .avv-icono svg { transition: none; } }
