.app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border-top: 2px solid var(--verde-principal);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    animation: appBannerIn 0.25s ease;
}

@keyframes appBannerIn {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.app-banner-hiding {
    animation: appBannerOut 0.25s ease forwards;
}

@keyframes appBannerOut {
    from { transform: translateY(0); }
    to   { transform: translateY(100%); }
}

.app-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
}

.app-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.app-banner-text strong {
    font-size: 14px;
    color: #111;
}

.app-banner-text span {
    font-size: 12px;
    color: #666;
}

.app-banner-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.app-banner-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}

.app-banner-close:hover {
    color: #333;
}

/* Overlay de actualización obligatoria (solo en APK) */
.app-update-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.app-update-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.app-update-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}

.app-update-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.app-update-version {
    font-size: 14px;
    font-weight: 600;
    color: var(--verde-principal, #2a9d4e);
    margin: 0;
}

.app-update-msg {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.app-update-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.app-update-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.app-update-hint {
    font-size: 12px;
    color: #888;
    min-height: 16px;
    margin: 0;
}
