/* Observatorio Climatológico Académico · Tecnológico Universitario EuroAmericano · © Prof. Feddor Derenzin M.
   Barra superior (marca, telemetría, acciones) y aviso de aguaje. */

/* ============================================================
   1. BARRA SUPERIOR COMPACTA E INTEGRADA (ESTILO EJECUTIVO MINIMALISTA)
   ============================================================ */
.top-bar {
    position: absolute;
    top: 10px;
    left: 14px;
    right: 14px;
    height: 52px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(9, 14, 26, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

/* Cápsula de Identidad Institucional y Autor */
.brand-cluster {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 3px 8px 3px 4px;
    border-radius: 9px;
    transition: background 0.2s ease;
}

.brand-cluster:hover {
    background: rgba(255, 255, 255, 0.05);
}

.brand-logo-wrap {
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    flex-shrink: 0;
}

.brand-logo-wrap img {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-accent-bar {
    width: 1.5px;
    height: 26px;
    background: linear-gradient(180deg, transparent, var(--accent-cyan), transparent);
    flex-shrink: 0;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-main {
    font-family: 'Outfit', sans-serif;
    font-size: 12.2px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-radar-badge {
    font-size: 12px;
}

.brand-title-highlight {
    color: #f8fafc;
}

.brand-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #38bdf8;
    font-weight: 700;
    line-height: 1.1;
}

.brand-author-pill {
    color: #7dd3fc;
    font-weight: 700;
    font-size: 11px;
}

/* Cinta Central: Estado ACTUAL + Fecha + Satélite + Frecuencia de Paso */
.telemetry-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(4, 8, 16, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    overflow-x: auto;
    scrollbar-width: none;
}
.telemetry-strip::-webkit-scrollbar {
    display: none;
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-status-pill.is-historic {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.55);
    color: #fbbf24;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 7px #10b981;
    animation: pulse-live 1.6s infinite;
}

.live-status-pill.is-historic .live-dot {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
    animation: none;
}

@keyframes pulse-live {
    0%, 100% { transform: scale(0.95); opacity: 0.75; }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 10px #10b981; }
}

.telemetry-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #cbd5e1;
    white-space: nowrap;
    font-size: 11px;
}

.telemetry-item b {
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 11px;
}

.telemetry-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

/* Selector de Sector y Acciones Integradas en Barra Superior */
.top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.top-sector-select {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #ffffff;
    padding: 5px 9px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    max-width: 195px;
}

.top-sector-select:focus {
    border-color: var(--accent-cyan);
}

.btn-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.btn-pill:hover {
    background: rgba(0, 229, 255, 0.18);
    border-color: var(--accent-cyan);
    color: #ffffff;
}

.btn-pill.is-active {
    background: rgba(0, 229, 255, 0.22);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 700;
}

.btn-pill-gps {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
    font-weight: 700;
}

.btn-pill-gps:hover {
    background: rgba(16, 185, 129, 0.30);
    border-color: #10b981;
    color: #ffffff;
}

/* ============================================================
   2. TARJETA COMPACTA DE ALERTA DE AGUAJE (IZQUIERDA)
   ============================================================ */
.aguaje-citizen-banner {
    position: absolute;
    top: 72px;
    left: 14px;
    width: 310px;
    z-index: 1040;
    background: rgba(11, 17, 30, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-left: 4px solid var(--accent-amber);
    border-radius: 11px;
    padding: 9px 11px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-start;
    gap: 9px;
    transition: all 0.25s ease;
}

.aguaje-citizen-banner.is-critical {
    border-color: rgba(244, 63, 94, 0.55);
    border-left-color: var(--accent-red);
    background: linear-gradient(135deg, rgba(38, 12, 24, 0.93), rgba(12, 18, 32, 0.95));
}

.aguaje-citizen-banner.is-calm {
    border-color: rgba(16, 185, 129, 0.45);
    border-left-color: var(--accent-emerald);
}

.aguaje-banner-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.aguaje-banner-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.aguaje-banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.aguaje-badge {
    font-size: 11px;
    padding: 1.5px 6px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.aguaje-banner-desc {
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.35;
}

.aguaje-banner-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
    font-size: 11px;
    color: #94a3b8;
}

.aguaje-banner-meta b {
    color: #f8fafc;
    font-family: 'JetBrains Mono', monospace;
}
